struct definition inside a function

2022-11-29 Thread Anuz Pratap Singh Tomar
Hi all,
I have not seen a struct define inside a function in kernel code and
couldn't find any guidelines if it's permitted or frowned upon?

int fn(int i)
{
 struct my_struct {
int var1;
int var2
}; /* is this allowed? */
struct my_struct struct_local;


return 0;
}
I'll appreciate any insight on this?
-- 
Thank you
Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


device tree and config file

2021-08-03 Thread Anuz Pratap Singh Tomar
Hi all,
How does device tree file pick up node entries for modules enabled by "make
menuconfig"(or just "CONFIG_XX=y "in ,config), which are not part of
defconfig. Or If you enable a new module you have to write new device tree
entries manually?

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Enquiry for contribute in Linux Kernel

2021-02-05 Thread Anuz Pratap Singh Tomar
On Fri, Feb 5, 2021 at 7:01 AM Abhijit Paul 
wrote:

> Dear Sir,
> I am Abhijit Paul and I am from India. I study in high school.I want to 
> *contribute
> *to the Linux Kernel to become a *Linux Kernel Engineer*. But I don't
> know what to learn. I know the *C/C++* programming language. Do I need to
> learn about operating systems and how they work?
> Please can you tell me *what to learn to contribute in Linux Kernel*.
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

Have a look around on this site
https://kernelnewbies.org/
-- 
Thank you
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: linux kernel coding style and checkpatch.pl script

2020-03-26 Thread Anuz Pratap Singh Tomar
On Wed, Mar 25, 2020 at 9:38 AM Tomek The Messenger <
tomekthemessen...@gmail.com> wrote:

> Hi
> There is checkpatch.pl script where You can check if You wrote code in
> your kernel module according to linux kernel style.
> However can I ignore warning message?
> WARNING: quoted string split across lines
> #974: FILE: fpgax67-core.c:974:
> +   dev_err(&pdev->dev, "registration not done, driver is
> already "
> +   "registered\n");
>
> If I don't split line I will have another warning that 80 characters is
> exceeded.
>
> you can put the whole string on next line and/or use "\" for splitting
long string.

For sure I can ignore warnings about:
> WARNING: struct  should normally be const
> #998: FILE: fpgax67-core.c :998:
> +int fpgax67_unregister(struct platform_device *pdev)
>
> For sure all errors must be fixed like:
> const char* tmp -> change to -> const char *tmp;
> if(  => if (   #insert space
>
> Generally I don't know how much warnings should I correct. If it is
> mandatory or only good practise and I can omit some if it doesn't make
> sense.
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


spaces after typecasts?

2020-02-19 Thread Anuz Pratap Singh Tomar
Hi all,
I don't see anything in coding guidelines about spaces after typecasts i.e.
(char *)x; vs (char *) x;.
Typecasts are considered keywords or not? given you could typecast to a non
C keyword as well?

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Introduction & Query on Newbie Website Status

2020-02-02 Thread Anuz Pratap Singh Tomar
On Fri, Jan 31, 2020 at 11:14 PM Jack Winch 
wrote:

> Hi All,
>
> Just joined the mailing list (as I will no doubt be calling on the
> community's expertise in the near future).  I am looking to get my
> hands dirty with some kernel development - mainly because I want to
> improve my understanding of the kernel and I honestly believe that
> getting involved will be a worthwhile investment of my time and will
> also be highly educational.
>
> Over the next coming months, I shall be undertaking a more structured
> approach to studying and gaining familiarity with the kernel source.
> I will also be looking to get involved in some simple patch
> development (e.g., simple janitorial type jobs), such that I can gain
> some experience of the patch development and submission process.  I am
> aware that kernelnewbies.org typically lists some of these types of
> job and that the kernel project has plenty of documentation and tips
> from veteran contributors concerning these topics.
>
> Areas of particular interest to me include:
>   - Industrial I/O
>   - Device Driver Development
>   - 'Real-Time' Systems
>   - Time Synchronisation
>   - Networking & Communication Protocols
>
> If anyone knows of any newbie projects in these specific areas, then
> it would be great to hear from you.
>
> Lastly, the Kernel Newbies website seems to be unavailable at the
> moment (Google last cached the site on 31 Jan 2020 01:49:1 UTC).  Any
> idea when it will be available again?
>
> Rik maintains the website, I think.
ccing him for an answer.

Many Thanks,
> Jack W.
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Try/catch for modules?

2019-10-18 Thread Anuz Pratap Singh Tomar
On Fri, Oct 18, 2019 at 4:44 PM Martin Galvan  wrote:

> El jue., 17 oct. 2019 a las 19:13, Valdis Klētnieks
> () escribió:
> >
> > For starters, the *correct* in-kernel way to deal with this is:
> > if (!ptr) {
> > printk("You blew it!\n");
> > goto you_blew_it;
> > }
>
> goto statements are harmful. In any case, what I meant was to have
> some sort of safety net to prevent exceptions (i.e. if I screw up and
> forget a NULL check) from panicking the system.
>
> Why exactly are goto statements harmful?
Here is Linus's email about goto.
https://koblents.com/Ches/Links/Month-Mar-2013/20-Using-Goto-in-Linux-Kernel-Code/

> Also, "current PID" and "my module" aren't two things that can
> correspond
>
> I don't understand what you mean by that. Module code (e.g. an ioctl)
> runs as some process. In the case of an ioctl, I'd assume it's the
> same PID of the user process.
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Offtopic] Are these good coding rules for C?

2017-04-22 Thread Anuz Pratap Singh Tomar
Hi,
I came across this paper http://spinroot.com/gerard/pdf/P10.pdf written by
someone at JPL, NASA.
Some of the rules stated in this paper are good rules about bound checking
and keeping functions short makes sense, whereas some others about malloc
and pointers seems less of rules, but believing that programs are unable to
handle these tasks properly.
I am not sure if Linux in areas which are safety critical and if so does
that code follow similar rules?

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: edit wiki

2017-03-28 Thread Anuz Pratap Singh Tomar
send a mail to Rik.

On Tue, Mar 28, 2017 at 4:05 AM, Tobin C. Harding  wrote:

> Could someone please add me to the list of names for editing the
> kernelnewbies wiki.
>
> >From https://kernelnewbies.org/
>
> To prevent wiki spam, only users on this list are allowed to edit the
> wiki. Any of these users can add new usernames to the list. If you
> need to be on the list, please ask in #kernelnewbies on irc.oftc.net
> or on the mailing list.
>
> thanks,
> Tobin.
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Problem in First-Patch-Tutorial

2017-03-13 Thread Anuz Pratap Singh Tomar
Seems like these tasks are all part of outreachy program and you are
supposed to be submitting it to the outreachy mailing list.:

https://kernelnewbies.org/IIO_tasks

one of the task is learning how to compile your own module, which is better
explained in

https://static.lwn.net/images/pdf/LDD3/ch02.pdf

I am not sure if compilation process has changed much. Only thing which I
think have changed in modprobe being less preferred.

Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: sizeof

2017-03-07 Thread Anuz Pratap Singh Tomar
On Tue, Mar 7, 2017 at 11:20 PM, Tobin C. Harding  wrote:

> Question relating to the validity/usefulness of patching calls to sizeof.
>
> >From Documentation/process/coding-style.rst
>
> The preferred form for passing a size of a struct is the following:
>
> .. code-block:: c
>
> p = kmalloc(sizeof(*p), ...);
>
> The alternative form where struct name is spelled out hurts readability and
> introduces an opportunity for a bug when the pointer variable type is
> changed
> but the corresponding sizeof that is passed to a memory allocator is
> not.Is the distinction between
>
>
>  Question:
>
> Is a the following a valid/useful patch or just code churn
>
> diff--
>
> - sizeof(struct foo)
> + sizeof(*fp)
>
>
That should depend on consistency of convention in whole file. If there are
multiple instance of this in same file(or whole module), it might not make
sense to change them all.


> ---
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: want to be a kernel developer

2017-02-24 Thread Anuz Pratap Singh Tomar
On Fri, Feb 24, 2017 at 8:29 AM, sourav mondal  wrote:

> hi,
> I want to be a kernel developer.I don't really know much about linux
> kernel. can anyone suggests me some good books that can help to learn more
> about the kernel development?
>
> thanks,
>
> sourav
>
> Start here
https://kernelnewbies.org/FAQ

> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: driver todo's

2017-02-14 Thread Anuz Pratap Singh Tomar
On Sat, Feb 11, 2017 at 8:04 AM, srishti sharma 
wrote:

> It was because of the documentation not being proper , as per the mail
> sent by your bot , right ? I will fix those errors and re-send it .
>
> Thanks
>
> Regards
>
> Kernel-janitor is the right place to post minor fixes.
They send a lot of patches on regular basis, which is a good place to look
at the procedure for sending patches to right place.
Also reading about following the correct procedure on sending patches from
kernel documentation is vital before sending patches.

PS:   Avoid top posting. This list(and other open source lists) prefer
bottom posting.

Srishti
>
> On Sat, Feb 11, 2017 at 12:51 PM, Greg KH  wrote:
> > On Sat, Feb 11, 2017 at 11:50:19AM +0530, srishti sharma wrote:
> >> Hey , I have posted my first patch . Will I be notified if it gets
> accepted ?
> >
> > Yes, or if it rejected, like I just did :)
> >
> > thanks,
> >
> > greg k-h
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Sending your first patch[FYI]

2017-02-08 Thread Anuz Pratap Singh Tomar
Hi all,
This is not really a question but I am sharing this article written by
Julia about how to send your first patch. This question is asked quite a
bit lot here on this list and I have not seen this article before. This has
a lot of useful  and practical info,  please feel free to share it
https://kernelnewbies.org/FirstKernelPatch

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to get involved with the latest kernel development?

2016-11-10 Thread Anuz Pratap Singh Tomar
On Thu, Nov 10, 2016 at 1:23 PM, Hao Lee  wrote:

> Hi, everyone
>
> I'm very interested in memory management, so I have read many
> materials such as  Understanding the Linux Virtual Memory Manager and
> Understanding the Linux Kernel (2nd). These books are all about kernel
> 2.4 and I have read the source code of kernel 2.4 for a long time.
>
> I once thought I can use kernel 2.4 as my stepping-stone and begin my
> journey of kernel development, but I feel frustrated. Kernel 2.4 and
> kernel 4.4.30 are almost completely different! I can't even find a
> familiar function and I don't know how to begin. I want to contribute
> to mm subsystem and I believe many developers in this list are more
> experienced than me, so could you give me some advice. Thanks!
>
> 2.6.XX series had same books with newer version, which are closer to 4.X.X
kernels.
But  I don't think any book is completely upto date.

> Regards,
> Hao Lee
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Getting started with Development

2016-10-12 Thread Anuz Pratap Singh Tomar
On Wed, Oct 12, 2016 at 2:58 PM, Ganesh  wrote:

> Hello,
>
> I am interested in memory management unit of KVM.
>
> On KVM's website it is mentioned that, try LRU (currently FIFO) and
> analyse the performance.
>
> I want to do it as a final year B. Tech project ;but I have time
> limitation of 4-5 months.
>
> I have basic background of operating system and little bit about
> virtualization.
>
> I am eager to do this ;but I want to know that,
> 1. how much time does it take for new developer to implement thing like
> LRU?
>
> 2. Is it doable within 4-5 months?
>
>
> If it is NOT doable within 4-5 months then,
> Is their any project related to kernel development which I can do it
> within 4-5 months?
>
> I assure that, I will give my best
>
>
Memory Management is one of the hardest subsystem of the Linux kernel, it
take a few months to even grasp the concept of how it is managed and
converting it into useful code will take longer.
To get a taste of code
http://lxr.free-electrons.com/source/mm/

See, if you can understand what is going on around.

Also recommend to read to x86 memory management techniques and then Bovet
and Cessati's Chapter on Memory management.

Secondly, this list is not a list to find projects for kernel, it is to ask
specific doubts about concepts of kernel development and help in
understanding the code.

The general idea of starting with kernel is writing a small character or
block device driver as concept and writing a report about understanding of
kernel subsystem, it will form a good project. If not, try to fix a small
bug in the kernel. Even fixing a small bug, if you have not initiated
yourself to kernel programming will take time and effort.


Lastly before asking such questions, you should look around for relevant
articles, mailing list and possibly visit stackoverflow, because there must
be someone who has asked a similar question before.


Thanks
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to search topics in The Kernelnewbies Archives?

2016-09-24 Thread Anuz Pratap Singh Tomar
searching through archive even with google is not that well implemented.

On Wed, Sep 21, 2016 at 10:53 PM, Greg Freemyer 
wrote:

> On Wed, Sep 21, 2016 at 2:58 AM,   wrote:
> > On Wed, 21 Sep 2016 14:27:03 +0800, Chi Wang said:
> >
> >> https://lists.kernelnewbies.org/pipermail/kernelnewbies/
> >>
> >> Is there a general way to do searching in this archive?
> >> Or I have to download all the packages?
> >
> > Google can do wonders.
> >
> > Say you're trying to find the discussion 2 years ago about how to
> > write a frobnizz driver.   Go to google, and enter:
> >
> > frobnizz site:kernelnewbies.org
> >
> > and that should do the heavy lifting for you.
>
>
> That's pretty sad.
>
> It doesn't work for kernelnewbies, but markmail.org is a much better
> search engine for mailing lists in supports (thousands of them).
>
> Definitely what I use for the main kernel list archives.
>
> You can use a similar "list:" syntax if you know what list you want to
> search.
>
> Greg
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Booting of Linux kernel

2016-09-06 Thread Anuz Pratap Singh Tomar
On Tue, Sep 6, 2016 at 3:32 PM, Er Krishna  wrote:

> Hi all
>
> I have a basic question for understanding :
>
> If we want to boot the Linux kernel without bootloader what needs to be
> done?
>
> In other words what all the core subsystem like memory and all
> needs initialisation by bootloader and if bootloader is not there then how
> to do it ?
>
http://duartes.org/gustavo/blog/post/kernel-boot-process/
https://0xax.gitbooks.io/linux-insides/content/Booting/

Thanks
> Krishna
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Request Chinese mail list and FrontPage

2016-09-06 Thread Anuz Pratap Singh Tomar
On Tue, Sep 6, 2016 at 9:48 AM, Schrey, Moritz <
moritz.sch...@ias.rwth-aachen.de> wrote:

> > On Tue, Sep 6, 2016 at 1:54 AM, Andrey Utkin
> >  wrote:
> > > My vision is that if some nice people of Chinese origination AND
> > > qualified as experienced kernel developers would have time and habit
> > > to reply newbie questions on kernelnewbies mailing list, they would
> > > often reply also to questions posted in English, because
> > >  - to succeed as kernel dev you must have good English, so good
> > kernel
> > >devs all know English well, and
> > >  - it would be unfair to answer only to your compatriots when a lot
> > of
> > >newbies of different nations want help, too.
> > >
> > > And what I see happening is that no people with Chinese names are
> > > answering the questions here. Most of answers come from Greg
> > > Kroah-Hartman, who doesn't speak Chinese I guess. However, I'm
> > > watching this list just for two weeks, so my conclusion may be wrong.
> >
> > Hi, Andrey Utkin
> >
> > Thanks for your advice. I agree that English is very useful when we
> > discuss kernel problems, but it's also necessary for us to have our
> > native language maillist. With this list, we can talk about various
> > topics, even trivial questions about kernel and I believe we can help a
> > lot of Chinese developers. If we can't deal with some difficult
> > problems, we will certainly ask for help in English list. Several years
> > ago, we once had a chinese mail list which domain is http://zh-
> > kernel.org and many Chinese developer, such as Herbert Xu, Wang Cong,
> > Mingming Cao and Bryan Wu, were active in this list. But, it's very
> > pity that this domain is invalid now. That's why I request a mail list.
> >
> > Thanks,
> > Hao Lee
> >
> > ___
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> Following your rationale, there should be separate mailing lists for every
> kernel hacker language. This would reduce the scope of helpful answers and
> lessen the motivation to answer with helpful comments at all, as less
> people are likely to read it.
>
> Trivial questions of all kind have been asked and answered on this list.
>
> How should a Chinese kernel developer contribute to the kernel if he/she
> does not feel comfortable to speak English?
>
> Due to the above, I feel that there should be only one kernelnewbies
> mailing list, which accumulates all newbies and people willing to help.
>
>
To add to that, this list is already low traffic (3-4 mails per day).
I don't know how much traffic a language specific mailing list will
generate.
Majority of Kernel documentation and pretty much most kernel code comments
are in English.
Non technical and regional issues may be discussed in regional languages,
but I suppose LUGs are more suitable for such conversation compared to a
kernel mailing list.
That being said, if you have resources to create a mailing list in your
language, I don't see a reason why you shouldn't start one yourself and may
be add an entry to newbies website. The mention of such entry may or may
not be on front page of newbie website, that is something admins of site
will decide.

Thank
-A
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Please, add me to EditorsGroup

2016-08-16 Thread Anuz Pratap Singh Tomar
On Tue, Aug 16, 2016 at 11:11 AM, Aleksander Alekseev 
wrote:

> Hello.
>
> I would like to contribute to kernelnewbies.org. In particular today I
> discovered that link to oftc.net on IRC page is broken and I would like
> to fix this.
>
> My account: AleksanderAlekseev
>
> You gotta ask Rik.

> --
> Best regards,
> Aleksander Alekseev
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: oh yeah

2016-06-21 Thread Anuz Pratap Singh Tomar
On Tue, Jun 21, 2016 at 3:05 PM, ty armour  wrote:

> if you all want to you can build computers microchip by microchip, just
> post tutorials on it if you do!
>
> these are fun things to think about. IM like a few years out but im sure
> ill get it done
>
> I would recommend this
http://kernelnewbies.org/mailinglistguidelines



> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: looking for tutorials

2016-06-21 Thread Anuz Pratap Singh Tomar
On Mon, Jun 13, 2016 at 3:43 PM, ty armour  wrote:

> I need tutorials on kernel development. And on complete operating system
> development. I would prefer them to be in assembly because it is faster,
> but it seriously needs to get done.
>
> If you are interested, simply post all of the tutorials and other relevant
> information to coding kernels that you can
>
> and show the references, like actually say okay so in order to do this we
> need to look for this in the assembler manual.
>
> Thanks and have fun
>
>
If you look at the Archives I posted a lot of links in a mail few weeks
ago.

> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Book Material

2016-06-12 Thread Anuz Pratap Singh Tomar
On Sun, Jun 12, 2016 at 7:45 PM, akhilesh baddigam <
baddigam.akhil...@gmail.com> wrote:

> Grettings every one,
>
> I am new to linux kernel development, I started reading Robert loves Linux
> Kernel Development Book, The book is more theoretical I need to start linux
> kernel kernel programming, Can any one suggest me the best book or resource
>  to start learning linux kernel programming.
>
>
http://kernelnewbies.org/KernelHacking
http://kernelnewbies.org/FirstKernelPatch
http://kernelnewbies.org/KernelBuild
http://www.kroah.com/lkn/
http://www.crashcourse.ca/
https://lwn.net/Kernel/LDD3/
http://elinuxdd.com/
http://lxr.free-electrons.com/
https://www.kernel.org/doc/
http://shop.oreilly.com/product/9780596005658.do
https://lwn.net/Articles/296738/
https://lwn.net/Kernel/Index/
http://www.linuxjournal.com/content/kbuild-linux-kernel-build-system
https://www.youtube.com/watch?v=H4Z0S9ZbC0g
https://training.linuxfoundation.org/free-linux-training/linux-training-videos


I think that is enough for now.



> Thank you.
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: list etiquette

2016-06-11 Thread Anuz Pratap Singh Tomar
I don't think greg or any senior kernel developer would like to get
personal mail, which are officially the list/community business.
Skipping thank you mails is really okay. you can always thank them in
advance is a good idea.

On Sat, Jun 11, 2016 at 11:47 AM, Tobin Harding  wrote:

> On Tue, Jun 07, 2016 at 12:03:57PM -0400, Frank Ch. Eigler wrote:
> >
> > m...@tobin.cc wrote:
> >
> > > LKML list etiquette question.  When asking a [simple] question that
> > > receives an suitable answer is it correct etiquette to reply with a
> > > thank you email or is this just adding noise to the list?
> >
> > (Probably obvious, but you can always reply with a "thank you",
> > sent directly to the people who answered rather than to the list.)
>
> I had got the vibe that it was unacceptable to mail people directly and
> not cc
> the list. Is this response correct that there are times it is acceptable to
> exclude the list. GregKH has had to nudge me twice for doing this so I am
> very
> hesitant to write any emails that are not in the clear (cc'ing a list).
>
> Tobin
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: list etiquette

2016-06-06 Thread Anuz Pratap Singh Tomar
On Mon, Jun 6, 2016 at 9:53 AM, Tobin Harding  wrote:

> LKML list etiquette question.
>
> When asking a [simple] question that receives an suitable answer is it
> correct
> etiquette to reply with a thank you email or is this just adding noise to
> the
> list?
>
> Generally, it is understood.
Here are some mailing list for guidelines which might be relevant

http://kernelnewbies.org/mailinglistguidelines


> thanks,
> Tobin.
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Submitting patches to non-staging

2016-03-04 Thread Anuz Pratap Singh Tomar
On Thu, Mar 3, 2016 at 1:50 AM, Pratyush Patel  wrote:

> On Thu, Mar 3, 2016 at 1:15 AM, Christoph Lameter  wrote:
> > On Tue, 1 Mar 2016, Pratyush Patel wrote:
> >
> >> I will be pursuing my undergraduate thesis research in the field of
> >> real-time (operating) systems and as such, I expect to be closely
> >> involved with the timer and interrupt subsystems in Linux (as well as
> >> other areas, but to a lesser degree). I am also hoping to work with
> >> the hrtimer subsystem, and while going through the latest code
> >> (4.5-rc6) of the same, I found a very minor code-level change that
> >> could be incorporated (redundant #ifdef). Would such a change in a
> >> core kernel file be acceptable coming from a beginner? Or should I aim
> >> for the staging drivers first?
> >
> > Dont worry about staging. There is no staing for interrupts and timers.
> Go
> > direct and post to the relevant maintainers and lkml
> >
> >> I very much look forward to contributing my first patch!
> >
> > love to see it.
> >
>
> Here's the archive link:
> http://comments.gmane.org/gmane.linux.kernel/2165466
>
> Please do let me know in case I did something wrongly.
>
> Awaiting for it to be accepted!
>
> Single line changes like that can be sent to Janitors mailing list.


> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Drivers in staging folder

2016-01-06 Thread Anuz Pratap Singh Tomar
On Wed, Jan 6, 2016 at 11:07 AM, James Miller  wrote:

> Hi All,
>
> I've had a look at the TODO files but I'm having some difficulty with
> finding out which devices each of the drivers support. My plan was to find
> a driver in staging, get a device off ebay which uses the driver and then
> start working on the TODO.
>
> Is this the right approach and is the actual device (for testing) needed
> in order to do cleanups in TODO files?
>
> That would depend on the type of device in question.
Also make sure you do not quick fix the problem, some of these todo might
require more investigation than what it seems on the surface.

> Any help would be really appriciated.
>
> Thanks,
>
> James
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Two questions

2015-10-28 Thread Anuz Pratap Singh Tomar
On Wed, Oct 28, 2015 at 4:08 PM, Albino B Neto  wrote:

> 2015-10-28 13:57 GMT-02:00 Anuz Pratap Singh Tomar <
> chambilketha...@gmail.com>:
> > 1. Is this book still relevant?
> > Linux Kernel in Nutshell by GKH
> > http://www.kroah.com/lkn/
>
> Yes. You read here also [0].
>
> 0 - https://www.kernel.org/doc/Documentation/


Thanks, I am aware of documentation. My question was wrt the changing
nature of kernel and book has not been changed for quite few years now.

>
>
> > 2. Which is the official mailing list discussion on staging tree/driver?
>
> Mailing[1] of Linux.
>
> 1 - http://vger.kernel.org/vger-lists.html


I have searched for a bit before asking the question. Which particular one
is for staging tree/driver?
As quick Ctrl+f with staging yields no results.


>
>
>
>Albino
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Two questions

2015-10-28 Thread Anuz Pratap Singh Tomar
1. Is this book still relevant?
Linux Kernel in Nutshell by GKH
http://www.kroah.com/lkn/

2. Which is the official mailing list discussion on staging tree/driver?

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Newbie help

2015-08-03 Thread Anuz Pratap Singh Tomar
On Mon, Aug 3, 2015 at 3:38 PM, Rishabh Chakrabarti  wrote:

> Hello all,
>
> Where can I search the archives and other resources for answering the
> following questions:
>
> 1. How to dive into the code? i.e. entry points
> 2. What are the pre-requisites for understanding the whole code?
> 3. Best books and resource material
>
> Search through Kernelnewbies.org for all these answers.
Spend some time reading and searching through it.

> Kindly keep a lay person in mind while answering.
> Please direct me to the right place and the rest i'll DIY. Thank you.
>
> Regards,
>
> Rishabh
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: goto???

2015-07-17 Thread Anuz Pratap Singh Tomar
On Fri, Jul 17, 2015 at 8:55 AM, Navy  wrote:

> Hello,
> Goto is recommend in linux kernel programming, but it is despised in many
> other situation. There are four rationable for using goto in
> Documentation/CodingStyle. Do you have some viewpoints about "why goto" or
> "why not goto"? I'm glad to get your point.
> Thank you.
>
>
Bit of kernel History here, read what Linus said about  goto

http://koblents.com/Ches/Links/Month-Mar-2013/20-Using-Goto-in-Linux-Kernel-Code/

Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Question about assembly in set bit function for x86 architecture

2015-04-19 Thread Anuz Pratap Singh Tomar
On Mon, Apr 20, 2015 at 12:08 AM, Nicholas Krause 
wrote:

>
>
> On April 19, 2015 5:13:20 PM EDT, Anuz Pratap Singh Tomar <
> chambilketha...@gmail.com> wrote:
> >On Sun, Apr 19, 2015 at 9:51 PM, nick  wrote:
> >
> >> Greetings All,
> >> I am wondering what the below code in the asm modifier does:
> >> static inline void set_bit(int nr, void *addr)
> >> {
> >>  asm("btsl %1,%0" : "+m" (*(u32 *)addr) : "Ir" (nr));
> >> }
> >> This would be very helpful as I am new to  x86 assembly and don't
> >> even known what register(s)/instruction(s) this touches and therefore
> >this
> >> is impossible for me to look up in the Intel Manuals. If someone
> >either
> >> tells me the registers/instructions this uses or explains the code
> >that
> >> would be very helpful.
> >> Nick
> >>
> >> ___
> >> Kernelnewbies mailing list
> >> Kernelnewbies@kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >>
> >
> >get a book on i86 assembly and learn it.
> The reason I am asking is that is assembly worth my time to learn for this
> part of the kernel, I understand  it's use in boot code but outside of that
> and cache memory lines in architecture directories there is very little, 95
> percent of the kernel is written in C.  In addition due to this the only
> practical reason I  can thing of is for
> debugging,  how useful is assembly for kernel debugging is my other
> question about this topic.
> Nick
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>

Just read the books, don't be lazy.

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Question about assembly in set bit function for x86 architecture

2015-04-19 Thread Anuz Pratap Singh Tomar
On Sun, Apr 19, 2015 at 9:51 PM, nick  wrote:

> Greetings All,
> I am wondering what the below code in the asm modifier does:
> static inline void set_bit(int nr, void *addr)
> {
>  asm("btsl %1,%0" : "+m" (*(u32 *)addr) : "Ir" (nr));
> }
> This would be very helpful as I am new to  x86 assembly and don't
> even known what register(s)/instruction(s) this touches and therefore this
> is impossible for me to look up in the Intel Manuals. If someone either
> tells me the registers/instructions this uses or explains the code that
> would be very helpful.
> Nick
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

get a book on i86 assembly and learn it.

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re:

2015-03-30 Thread Anuz Pratap Singh Tomar
On Mon, Mar 30, 2015 at 5:56 AM, Woody Wu  wrote:

> Hi,
>
> I have a kernel already run on production, but I then realized that I need
> to add one or two driver to it.  But I hope I can avoid to upgrade the
> kernel image for those already running products, I hope I can only extend
> the kernel by add the driver modules to the root file system. Is that
> possible? The current kernel has already compiled with the loadable modules
> options, but for the drivers that I want now the old config is 'no'.
>
> Thanks in advance.
> -woody
>
>
> Please use a subject line.
you should be able to compile a dynamic module and insmod it.

> --
> Sent from Gmail Mobile
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


a good video about programming and software engg in Linux kernel

2015-03-23 Thread Anuz Pratap Singh Tomar
Hello folks,
This video was shared by Alison to me. Here Dave Chinner talks about some
of the recent events which transpired at lkml and kernelnewbies. I think we
all have witness the said event and some of us have participated in this so
called flame war.
Besides all that, this is a very good video which every kernel newbie
should watch. Infact I am going to point this to anyone who asks the basic
questions like, "I want to be kernel haxor, what do I do?". Feel free to
share and propagate

https://www.youtube.com/watch?v=VpuVDfSXs-g


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: New member

2015-01-25 Thread Anuz Pratap Singh Tomar
On Sun, Jan 25, 2015 at 8:38 PM, srinivas bakki 
wrote:

> No intentions to criticize(if you think so) really. You got to mature. I
> respect Valdis/Robert. I know mulyadi had been the ultimate contributor.
> ofcourse iam nobody here but got to say that you are also nobody to preach
> me. We are all here to learn and let's do it the way it's supposed to be.
>
> And yet again, you are Top-posting.
I am beginning to think, you are probably trolling, and I should have
ignored you right from the beginning.



*>>resending because not sent to all.*

*Apologies for the noise. *

> On Mon, Jan 26, 2015 at 2:01 AM, Anuz Pratap Singh Tomar <
> chambilketha...@gmail.com> wrote:
>
>>
>>
>> On Sun, Jan 25, 2015 at 8:16 PM, srinivas bakki > > wrote:
>>
>>> Anuz,
>>>  Sorry about that. But am also sorry that you could find a
>>> problem as silly as that. We have a greater problem at hand.
>>>
>>> As a kernel hacker, no problem is silly like that. All problem needs to
>> be discussed in open.
>> I have been on this list for about 8+ years and Robert and Vlad are the
>> most helpful people on the list. I have not seen Mulyadi for a while but he
>> was one of the top posters besides these two.
>> You on the other hand have not helped one bit in this case besides just
>> criticising them.
>>
>> Original poster has made no effort whatsoever to actually look into it
>> more than  knowing keywords like kernel hacking.
>> To begin with development, one quick google search will reveal the basic
>> books you need to read.
>> There is shit tonne of information on kernelnewbies about kernel
>> development, but that doesn't seem to be mentioned by OP.
>> Now, this mentality of spoon feeding people, who want to essentially
>> write code for CORE of an Operating system, which by very definition is one
>> of the most complex piece of software in existence, is neither good to the
>> poster nor to the community. To be frank, there was a lot of good advice in
>> Vlad's mail except for the fact that it was masked in clever banter.
>>
>> This type of mail spring up every month without fail, where a newbie will
>> just ask for help without a proper subject line, without a proper issue,
>> heck sometimes there is not even a real question. Most of these newbies
>> never turn up with a real question, let alone a problem which need to be
>> discussed or learned. On main kernel list, this type of mails will not even
>> be addressed.
>>
>> I would recommend that if you really want to help OP, then suggest them
>> with the help and not criticise people, who are really trying to help here.
>> --
>> Thank you
>> Warm Regards
>> Anuz
>>
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: New member

2015-01-25 Thread Anuz Pratap Singh Tomar
On Sun, Jan 25, 2015 at 8:16 PM, srinivas bakki 
wrote:

> Anuz,
>  Sorry about that. But am also sorry that you could find a problem
> as silly as that. We have a greater problem at hand.
>
> As a kernel hacker, no problem is silly like that. All problem needs to be
discussed in open.
I have been on this list for about 8+ years and Robert and Vlad are the
most helpful people on the list. I have not seen Mulyadi for a while but he
was one of the top posters besides these two.
You on the other hand have not helped one bit in this case besides just
criticising them.

Original poster has made no effort whatsoever to actually look into it more
than  knowing keywords like kernel hacking.
To begin with development, one quick google search will reveal the basic
books you need to read.
There is shit tonne of information on kernelnewbies about kernel
development, but that doesn't seem to be mentioned by OP.
Now, this mentality of spoon feeding people, who want to essentially write
code for CORE of an Operating system, which by very definition is one of
the most complex piece of software in existence, is neither good to the
poster nor to the community. To be frank, there was a lot of good advice in
Vlad's mail except for the fact that it was masked in clever banter.

This type of mail spring up every month without fail, where a newbie will
just ask for help without a proper subject line, without a proper issue,
heck sometimes there is not even a real question. Most of these newbies
never turn up with a real question, let alone a problem which need to be
discussed or learned. On main kernel list, this type of mails will not even
be addressed.

I would recommend that if you really want to help OP, then suggest them
with the help and not criticise people, who are really trying to help here.
-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: New member

2015-01-25 Thread Anuz Pratap Singh Tomar
On Sun, Jan 25, 2015 at 7:38 PM, srinivas bakki 
wrote:

> Valdis,
>You got to be polite with people.Not everybody is as smart as
> you, but they would like to contribute. Just keep in in mind that there's
> no future for linux without such people. You cannot keep bullying everybody
> like this.
>

Talking about polite, you are Top posting, how rude is that?


>
> On Mon, Jan 26, 2015 at 12:46 AM, Surendra Patil 
> wrote:
>
>> Hi Kaur,
>>
>> I would recommend you take a look at this videos by Greg -
>> http://www.youtube.com/watch?v=LLBrBBImJt4.
>> He has explained how to get started to contribute Linux Kernel.
>>
>> Good Luck !!!
>>
>>
>> On Sun, Jan 25, 2015 at 10:31 AM,  wrote:
>>
>>> On Sun, 25 Jan 2015 10:07:44 -0800, Satwantjit Kaur said:
>>> > I am a final year B.Tech (CSE) student from NIT Jalandhar. I like
>>> > programming and I know C and C++ programming languages. I have worked
>>> > on IPC and socket programming in C/C++. I wish to take up a project in
>>> > Linux Kernel development and contribute to it. Can somebody guide me
>>> > further?
>>>
>>> I'll be blunt. Unless you *already* have an interest or desire in a
>>> particular
>>> part of the kernel (for instance, filesystems, or networking, or memory
>>> management, etc), you probably aren't a good fit for actually
>>> contributing to
>>> the Linux kernel.  You might be able to hack up some code that will
>>> satisfy a
>>> professor for a project, but actual contributions are usually held to a
>>> higher
>>> standard.
>>>
>>> Consider the difference between "I'd like to write a book, but have no
>>> idea
>>> what to write about, can somebody suggest whether to write fantasy, or a
>>> romance, or non-fiction about sports, or something", and "I'm thinking
>>> about a
>>> story about the adventures of a Roman centurion fighting the Gauls, but
>>> need
>>> help making it historically accurate".
>>>
>>> Pretty much everybody will agree that the first book is doomed, because
>>> the author obviously isn't connected that much to their project.  The
>>> second?
>>> That has a *much* higher chance of producing a good story, simply because
>>> the author has a vision for the project that they can stick to.
>>>
>>> And that affects mentoring - nobody who knows anything about writing
>>> fantasy
>>> novels will be interested in helping somebody who hasn't even decided if
>>> they want to write about fantasy or scuba diving. Somebody who knows they
>>> want to write about a Roman centurion fighting the Gauls? At that point,
>>> it's worth the 5 minutes for a Roman history expert to give suggestions
>>> and references to the way things were then
>>>
>>> And the Linux kernel is the same way.
>>>
>>> Now, if you have a professor that's *insisting* on a Linux kernel
>>> project,
>>> that's an entirely different problem. ;)
>>>
>>>
>>>
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>>
>>
>> --
>> --
>> Best,
>> Surendra Patil
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Help

2015-01-14 Thread Anuz Pratap Singh Tomar
On Wed, Jan 14, 2015 at 10:19 AM, Anuz Pratap Singh Tomar <
chambilketha...@gmail.com> wrote:

>
> On Wed, Jan 14, 2015 at 9:16 AM, SAJID HOSSAIN <
> sajid.sajid5...@outlook.com> wrote:
>
>> Hi everyone,
>> I am new to open source and really interested in contributing to Linux
>> kernel, can someone please help me how to get started.
>> P.S : I have good knowledge in computer architecture, operating systems
>> and C/C++
>>
>> 1. Learn to use proper subject line, "help" doesn't ring any bell at all.
> 2. This question is asked every now and then, it is advisable to search
> the mailing list archives before asking this question.
> 3. Google a bit and work through basics like learning about Linux in
> general and programming and open source culture.
> 4. READ MORE, I mean read a lot before you ask a question. When you have
> exhausted all the avenues of self help, then come here with specific
> problem and we would be able to help.
> 5.  I wrote this a while ago but still relevant
> http://kernelnewbies.org/mailinglistguidelines
>
> Also dig kernelnewbies.org  for more details.
>
> Here is another link for newbies
http://kernelnewbies.org/FirstKernelPatch


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Help

2015-01-14 Thread Anuz Pratap Singh Tomar
On Wed, Jan 14, 2015 at 9:16 AM, SAJID HOSSAIN 
wrote:

> Hi everyone,
> I am new to open source and really interested in contributing to Linux
> kernel, can someone please help me how to get started.
> P.S : I have good knowledge in computer architecture, operating systems
> and C/C++
>
> 1. Learn to use proper subject line, "help" doesn't ring any bell at all.
2. This question is asked every now and then, it is advisable to search the
mailing list archives before asking this question.
3. Google a bit and work through basics like learning about Linux in
general and programming and open source culture.
4. READ MORE, I mean read a lot before you ask a question. When you have
exhausted all the avenues of self help, then come here with specific
problem and we would be able to help.
5.  I wrote this a while ago but still relevant
http://kernelnewbies.org/mailinglistguidelines

Also dig kernelnewbies.org  for more details.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: catch exit status of daemon

2015-01-06 Thread Anuz Pratap Singh Tomar
On Tue, Jan 6, 2015 at 3:22 PM, Yash Jain  wrote:

> Hello All,
> I have one dumb question,
> I wanted to write a process which monitors the exit status of the daemon,
>
> The Main process would fork a service, which would internally fork a child
> and , exit from the process. If main process wants to query the status of
> the daemon, how it can be achived.
>
> For ex :
> Process A would call a syslog service, which would internally fork a
> child, daemon it and exit, so if process A wants to wait for the syslog
> process, is it possible.
>
> waitpid()
signal()

> Thanks in advance
>
> Regards,
> Yash.
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Doubt In Char Drivers

2015-01-03 Thread Anuz Pratap Singh Tomar
While we are on the topic of ldd, does anyone know where can the latest
source for ldd drivers be found?
I think Greg said someone is maintaining a repo kernel wise?
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Nick in lkml ?

2014-11-26 Thread Anuz Pratap Singh Tomar
What is the point of this mail?
This is complete off-topic discussion, not to mention it is mail about Nick
and it is not coming from Nick.
Because it is not long before this becomes another spam-fest about
completely irrelevant topic.
If his patch is accepted in LKML, it is maintainer's responsibility to make
sure the patch is correct and if there indeed is a problem with the patch,
then informing maintainer is more suitable line of action.


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Issues with Community

2014-09-17 Thread Anuz Pratap Singh Tomar
ahahaha, this is a total win.

"There are many other theories such as it could be some joruno or redditter
trying to get burned by Linus to get some headlines. It could be NSA trying
to sneak their code, it could be Russians. But none of these theories beat
the one by Giorgio A. Tsoukalos who believes that it’s aliens trolling the
Linux Kernel mailing list."

On Wed, Sep 17, 2014 at 11:14 AM, Jesus Bustos 
wrote:

> Nick,
>
> What do you think about the following :
>
>
> http://www.themukt.com/2014/08/04/someone-trolling-linux-kernel-mailing-lists-really-hard/
>
> Regards.
>
> On 17 September 2014 11:00, Hugo Mills  wrote:
>
>> On Tue, Sep 16, 2014 at 07:22:15PM -0400, nick wrote:
>> > After numerous tries at good patches and still failing , I am
>> > listening to what you guys stated about my patches check it applies,
>> > grammar and build checks. I am still unable to get a good patch and
>> > would really appreciate it if someone walks me through one good
>> > patch as I will learn this will a tutor and the tutor can help be my
>> > router to the community for now in order to start helping me learn
>> > how to be involved correctly and follow the community rules. I am
>> > willing to work on my patches if someone is willing to do this for
>> > me and help me improve my taste in the communities mouth.
>>
>>Pretty much everybody who's written you an email from these mailing
>> lists in the last two months has been trying to help you in this way.
>> You've consistently ignored (or at least not followed) the advice,
>> which makes the people who gave it feel like it's not worth the
>> effort. Therefore, as it stands, anyone considering helping you will
>> probably think it's a complete waste of time.
>>
>>Phrases such as you've used to date: "I must check things more
>> carefully", "I'm willing to work on my patches", "I will learn this"
>> are no longer good enough: You've used wording like this before, and
>> failed to show that you've learned anything as a result.
>>
>>So, unless you can explain in detail *why* you ignored all the
>> previous advice, *and* you can explain in detail *how* you are modifying
>> your behaviour and working practices so that you can learn from future
>> advice, nobody is likely to want to help you.
>>
>>Go back and read my mail from yesterday. Engage with it -- write
>> your thoughts and explanations on a point-by-point basis. A single
>> three-line response at the end of the mail is not sufficient. If you
>> can't engage with that mail in detail, follow the advice I gave and
>> seek formal assistance for your learning difficulties.
>>
>>Hugo.
>>
>> --
>> === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
>>   PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
>>--- There are three mistaikes in this sentance. ---
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Improve my Rep

2014-09-15 Thread Anuz Pratap Singh Tomar
On Mon, Sep 15, 2014 at 3:38 PM, Nick Krause  wrote:

> After issues with the community I am wondering how to improve my rep
> and help out more.
> I will start out with check patch but if there is other work please
> let me known :).
>
> Seriously, you are beyond help.
A lot of people have tried to answer your mails, correct your patches and
give you correct advice, but you choose to ignore all of that.
This behaviour qualifies as either a) Trolling or b) you need medical
help(as a lot of people pointed out on LKML).
So please seriously stop, I am not sure what are you trying to achieve by
posting here, but it is just noise and annoyance to everyone.


> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Bad Patches and Issues with other devolopers

2014-08-06 Thread Anuz Pratap Singh Tomar
On Wed, Aug 6, 2014 at 2:32 PM, Nick Krause  wrote:

> On Wed, Aug 6, 2014 at 9:28 AM, Kristofer Hallin
>  wrote:
> > Being banned from the list means that you're not welcome anymore, so
> don't
> > try to get around it.
> >
> > On Aug 6, 2014 3:25 PM, "Nick Krause"  wrote:
> >>
> >> On Wed, Aug 6, 2014 at 8:47 AM, Nick Krause 
> wrote:
> >> > On Wed, Aug 6, 2014 at 6:30 AM, Anuz Pratap Singh Tomar
> >> >  wrote:
> >> >>
> >> >>
> >> >>
> >> >> On Wed, Aug 6, 2014 at 11:02 AM, Pramod Gurav
> >> >> 
> >> >> wrote:
> >> >>>
> >> >>> Now Nick can go and Troll these guys in there, Thanks to Anuz! :)
> >> >>
> >> >> Happy to help :D
> >> >>>
> >> >>>
> >> >>> On Wed, Aug 6, 2014 at 3:18 PM, Anuz Pratap Singh Tomar
> >> >>>  wrote:
> >> >>> > oh man you have gained prominence in vger?
> >> >>> > They have banned you from vger.
> >> >>> > Sarah Sharp, Greg-KH, Ted Tso etc are talking about you, quite
> some
> >> >>> > fame
> >> >>> > lol.
> >> >>> > https://plus.google.com/116960357493251979546/posts/N1roxd2k1f7
> >> >>> > https://lkml.org/lkml/2014/8/4/206
> >> >>> >
> >> >>> >
> >> >>> > On Wed, Aug 6, 2014 at 12:43 AM, Nick Krause  >
> >> >>> > wrote:
> >> >>> >>
> >> >>> >> On Tue, Aug 5, 2014 at 6:49 PM, Greg Freemyer
> >> >>> >> 
> >> >>> >> wrote:
> >> >>> >> > On Tue, Aug 5, 2014 at 5:35 PM, Nick Krause <
> xerofo...@gmail.com>
> >> >>> >> > wrote:
> >> >>> >> >> Is there any way to fix this or am I just unemployable.
> >> >>> >> >> Cheers Nick
> >> >>> >> >
> >> >>> >> > Get married and take your wife's name!
> >> >>> >> >
> >> >>> >> > Being more realistic, get good at a specific subsystem and
> earn a
> >> >>> >> > good
> >> >>> >> > reputation in that subsystem.  If you're lucky someone will get
> >> >>> >> > to
> >> >>> >> > know your reputation and get you a shot regardless that you got
> >> >>> >> > off
> >> >>> >> > on
> >> >>> >> > the wrong foot.
> >> >>> >> >
> >> >>> >> > More importantly, except for kernel trainers like Robert, most
> >> >>> >> > companies hire linux kernel subsystem developers, not linux
> >> >>> >> > kernel
> >> >>> >> > developers.  Thus you need to find a part of the kernel you
> want
> >> >>> >> > to
> >> >>> >> > delve into and get really good at just it.
> >> >>> >> >
> >> >>> >> > You can also research who the companies are that employ kernel
> >> >>> >> > developers and see which subsystems they are working in.  As an
> >> >>> >> > example Redhat employs a couple of the XFS developers.  SUSE
> >> >>> >> > employs
> >> >>> >> > one of the mdraid developers, etc.
> >> >>> >> >
> >> >>> >> > Greg
> >> >>> >> >
> >> >>> >> >
> >> >>> >> > --
> >> >>> >> > Greg Freemyer
> >> >>> >> I was really worried , that I would have to give up on this goal,
> >> >>> >> but thanks for the advice. I am interested in working in
> >> >>> >> schedulers,
> >> >>> >> file systems and  networking. If you guys want to help me , just
> >> >>> >> tell me how to get started and again to all the maintainers, I
> feel
> >> >>> >> terrible about wasting your time.
> >> >>> >> Sorry and thanks A lot,
> >> >>> >> Nick
> >> >>> >>
> >> >>> >> ___
> >> >>> >> Kernelnewbies mailing list
> >> >>> >> Kernelnewbies@kernelnewbies.org
> >> >>> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > --
> >> >>> > Thank you
> >> >>> > Warm Regards
> >> >>> > Anuz
> >> >>> >
> >> >>> > ___
> >> >>> > Kernelnewbies mailing list
> >> >>> > Kernelnewbies@kernelnewbies.org
> >> >>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >> >>> >
> >> >>>
> >> >>>
> >> >>>
> >> >>> --
> >> >>> Thanks and Regards
> >> >>> Pramod
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Thank you
> >> >> Warm Regards
> >> >> Anuz
> >> >
> >> > I am banned from vger or not?
> >> > Nick
> >> Seems I am banned from the list is there any way around this or not?
> >> Regards Nick
> >>
> >> ___
> >> Kernelnewbies mailing list
> >> Kernelnewbies@kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> I am not trying to get around it, I would like to be welcomed back is all.
> Cheers Nick
>

If I were you I would stop being a keyboard warrior at this very point and
start reading LDD, ULK, LKD etc and looking at code.


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Bad Patches and Issues with other devolopers

2014-08-06 Thread Anuz Pratap Singh Tomar
On Wed, Aug 6, 2014 at 11:02 AM, Pramod Gurav 
wrote:

> Now Nick can go and Troll these guys in there, Thanks to Anuz! :)
>
Happy to help :D

>
> On Wed, Aug 6, 2014 at 3:18 PM, Anuz Pratap Singh Tomar
>  wrote:
> > oh man you have gained prominence in vger?
> > They have banned you from vger.
> > Sarah Sharp, Greg-KH, Ted Tso etc are talking about you, quite some fame
> > lol.
> > https://plus.google.com/116960357493251979546/posts/N1roxd2k1f7
> > https://lkml.org/lkml/2014/8/4/206
> >
> >
> > On Wed, Aug 6, 2014 at 12:43 AM, Nick Krause 
> wrote:
> >>
> >> On Tue, Aug 5, 2014 at 6:49 PM, Greg Freemyer 
> >> wrote:
> >> > On Tue, Aug 5, 2014 at 5:35 PM, Nick Krause 
> wrote:
> >> >> Is there any way to fix this or am I just unemployable.
> >> >> Cheers Nick
> >> >
> >> > Get married and take your wife's name!
> >> >
> >> > Being more realistic, get good at a specific subsystem and earn a good
> >> > reputation in that subsystem.  If you're lucky someone will get to
> >> > know your reputation and get you a shot regardless that you got off on
> >> > the wrong foot.
> >> >
> >> > More importantly, except for kernel trainers like Robert, most
> >> > companies hire linux kernel subsystem developers, not linux kernel
> >> > developers.  Thus you need to find a part of the kernel you want to
> >> > delve into and get really good at just it.
> >> >
> >> > You can also research who the companies are that employ kernel
> >> > developers and see which subsystems they are working in.  As an
> >> > example Redhat employs a couple of the XFS developers.  SUSE employs
> >> > one of the mdraid developers, etc.
> >> >
> >> > Greg
> >> >
> >> >
> >> > --
> >> > Greg Freemyer
> >> I was really worried , that I would have to give up on this goal,
> >> but thanks for the advice. I am interested in working in schedulers,
> >> file systems and  networking. If you guys want to help me , just
> >> tell me how to get started and again to all the maintainers, I feel
> >> terrible about wasting your time.
> >> Sorry and thanks A lot,
> >> Nick
> >>
> >> ___
> >> Kernelnewbies mailing list
> >> Kernelnewbies@kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
> >
> >
> >
> > --
> > Thank you
> > Warm Regards
> > Anuz
> >
> > ___
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
>
>
>
> --
> Thanks and Regards
> Pramod
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Bad Patches and Issues with other devolopers

2014-08-06 Thread Anuz Pratap Singh Tomar
oh man you have gained prominence in vger?
They have banned you from vger.
Sarah Sharp, Greg-KH, Ted Tso etc are talking about you, quite some fame
lol.
https://plus.google.com/116960357493251979546/posts/N1roxd2k1f7
https://lkml.org/lkml/2014/8/4/206


On Wed, Aug 6, 2014 at 12:43 AM, Nick Krause  wrote:

> On Tue, Aug 5, 2014 at 6:49 PM, Greg Freemyer 
> wrote:
> > On Tue, Aug 5, 2014 at 5:35 PM, Nick Krause  wrote:
> >> Is there any way to fix this or am I just unemployable.
> >> Cheers Nick
> >
> > Get married and take your wife's name!
> >
> > Being more realistic, get good at a specific subsystem and earn a good
> > reputation in that subsystem.  If you're lucky someone will get to
> > know your reputation and get you a shot regardless that you got off on
> > the wrong foot.
> >
> > More importantly, except for kernel trainers like Robert, most
> > companies hire linux kernel subsystem developers, not linux kernel
> > developers.  Thus you need to find a part of the kernel you want to
> > delve into and get really good at just it.
> >
> > You can also research who the companies are that employ kernel
> > developers and see which subsystems they are working in.  As an
> > example Redhat employs a couple of the XFS developers.  SUSE employs
> > one of the mdraid developers, etc.
> >
> > Greg
> >
> >
> > --
> > Greg Freemyer
> I was really worried , that I would have to give up on this goal,
> but thanks for the advice. I am interested in working in schedulers,
> file systems and  networking. If you guys want to help me , just
> tell me how to get started and again to all the maintainers, I feel
> terrible about wasting your time.
> Sorry and thanks A lot,
> Nick
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Bad Patches and Issues with other devolopers

2014-08-05 Thread Anuz Pratap Singh Tomar
On Tue, Aug 5, 2014 at 7:04 PM, Nick Krause  wrote:

> On Tue, Aug 5, 2014 at 1:59 PM, Mandeep Sandhu
>  wrote:
> > Hi Nick,
> >
> > I came across some G+ posts from kernel developers discussing you and
> > your recent patch submissions. I must say you're pretty (in)famous! :)
> >
> > Jokes aside, why not just follow on the advice given to you by so many
> > people, i.e pick an area of interest (in the various kernel
> > subsystems) for yourself, first pick really small ossues (but not the
> > code formatting ones as they only tend to generate noise for the
> > maintainer and not really fix anything), create the patch, see if the
> > kernel builds with. TEST IT, most importantly (if you don't have the
> > requisite hw then either acquire one, or pick another issue where you
> > CAN test it). Basically check everything thats mentioned here:
> >
> > https://www.kernel.org/doc/Documentation/SubmittingPatches
> > http://kernelnewbies.org/OPWfirstpatch
> >
> > Trust me, if you _do_ go through this process and submit a 'good'
> > patch, all past issues that you've had with other developers will be
> > forgotten.
> >
> > Don't be in a rush to get 'something' in the kernel. I know its a big
> > deal to get things in one of the coolest piece of software on this
> > planet, but you'll need a lot perseverance and patience to be a kernel
> > contributor.
> >
> > HTH,
> > -mandeep
> >
> >
> > On Tue, Aug 5, 2014 at 10:42 AM, Nick Krause 
> wrote:
> >> I have sent out just ten bad patches and the developers seem very
> >> annoyed with me and
> >> think I am trolling. If someone on this list can find a way for me to
> >> improve my relationship
> >> with them and let me continue my work here that would be great.
> >> Nick
> >>
> >> ___
> >> Kernelnewbies mailing list
> >> Kernelnewbies@kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
> That's fine,
> I feel perhaps I am just really trying to force my code in(ego) and
> just is bad form.
> If anyone on this list can read my last trace to check my logic first,
> before I write
> a patch and let you check it, that would be great.
> Thanks A lot,
> Nick
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

How about not sending patches at all until you develop a good understanding
of kernel subsystems.
read the books and read code for few months before you ever re-try sending
patches?

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Kernel Development

2014-02-24 Thread Anuz Pratap Singh Tomar
On Mon, Feb 24, 2014 at 6:44 AM, subham soni  wrote:
First and foremost do not top post on this mailing list.
Google about toppost and bottom post.

Which of the Linux Distros should I take into
> consideration?Debian,Fedora,Gentoo,Slackware,openSUSE,etc.. there are
> so many, which distros should I take into consideration,

It doesn't really matter.
All distros have same kernel running inside with some customization.
It is matter of choice
Debian and Fedora are very good but serious Distros for development.
You can choose either.


> consider the
> limitations and start working?

The limitations of distros are not necessarily the limitations of kernel.
Both are two different beast
Dig a bit more and read about how linux ecosystem works.
What does a distribution actually contains. What are the different binaries
etc.


> Secondly, is the kernel (if the same
> version is considered) same on two different distros? That is ,
> distributions differ at the Kernel level as well?
>
Yes and No.
Two distribution can have absolutely same kernel but with customizations
for various things like drivers etc.
You can get source for kernel and compile your own kernel for pretty much
any distribution.

I think you should read more on OS development
1. Robert Love's Linux kernel Development
2. Maurice J Bach: Design of Unix operating system
3. Richard Steven's Advanced programming in Unix Environment
4. Rob pike's Unix Programming environment
5. Operating system by Galvin and Silberschatz
6. Jim Turley's 80386 advanced programming techniques
7. Linux device drivers (goes without saying)
8. Understanding Linux Kernel (if you are upto it)

>
> On 2/24/14, priyaranjan  wrote:
> > On Sun, Feb 23, 2014 at 10:54 PM, subham soni 
> > wrote:
> >> Hello,
> >> I am a newbie to kernel development. I would like to develop my
> >> own
> >> kernel from scratch. From where should I start from? I have a good
> >> experience of the commands in Linux (Ubuntu,Fedora,Debian,Slackware).
> >
> > You can start with reading Linux kernel development by Robert Love.
> > Also look at minix3 microkernel and its feature. You need to understand
> the
> > various modules of OS before writing a one
> >
> >
> >> I
> >> googled out and I came to know that I should start from Device Drivers.
> >> Now
> >> which device driver should I code? Or should I master Shell Scripting?
> >> For
> >> developing a kernel (my aim here would be to increase the battery life,
> >> since most laptops have only 1.30 hrs or 2.00 hrs in Linux OS) and 3.00
> >> hrs
> >> in Windows Environment. How should I start and from where?
> >>
> >
> > I don't think drivers is the good place to start.
> >
> >> ___
> >> Kernelnewbies mailing list
> >> Kernelnewbies@kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >>
> >
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: make kernel driver closed

2014-01-25 Thread Anuz Pratap Singh Tomar
On Sat, Jan 25, 2014 at 7:12 AM, phani kumar wrote:

> Hi all,
>
> Is there any way to make kernel driver closed(not open source)?
>
> Description: I have driver, I want make it non-open source. how can I do
> it?
>
>
> You shouldn't be posting such questions in this mailing list to be frank.

> Thanks,
> Phanindrakumar.Y
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Device driver tutorial

2013-12-13 Thread Anuz Pratap Singh Tomar
On Fri, Dec 13, 2013 at 2:26 PM, s.v.krishna reddy wrote:

>
>
>
> On Fri, Dec 13, 2013 at 7:49 PM, Anuz Pratap Singh Tomar <
> chambilketha...@gmail.com> wrote:
>
>>
>>
>>
>> On Fri, Dec 13, 2013 at 1:59 PM, s.v.krishna reddy wrote:
>>
>>>
>>>
>>>
>>> On Fri, Dec 13, 2013 at 7:07 PM, Anuz Pratap Singh Tomar <
>>> chambilketha...@gmail.com> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Fri, Dec 13, 2013 at 1:26 PM, s.v.krishna reddy 
>>>> wrote:
>>>>
>>>>> Thanks for you response,
>>>>>
>>>>> There is always a way to say a layman in easy approach to get the
>>>>> attention first and them get into detail later, I was looking for that 
>>>>> kind
>>>>> of tutorial. BTW, I was studying LDD, I'm not able to get much attention
>>>>> going through the chapters. It's getting tough to get the attention.I have
>>>>> looked at essential linux device driver. Looks very interesting to me. I
>>>>> think I need to be very focused for LDD. I was about to start chap 5. I
>>>>> think I have to first finish 1-5 chapters of essential linux device 
>>>>> driver,
>>>>> and then come back to LDD.
>>>>>
>>>>> Thanks,
>>>>> Krishna.
>>>>>
>>>>>
>>>>> Please don't top post.(http://catb.org/jargon/html/B/bottom-post.html)
>>>> It may require multiple reading to fully understand. Read more books
>>>> related to unix/linux fundamental. If you have little knowledge of unix in
>>>> general(that is internals of unix) and/or OS, the book might be bit hard.
>>>> So build that understanding. Your 'C' should be particularly good if you
>>>> want to really learn device drivers, so work on that as well. Look at
>>>> Robert Love's LKD, it might help as well.
>>>> Device driver code is NOT meant for layman it is meant for device
>>>> driver engineers, so there is no such thing as easy approach.
>>>>
>>>> If you have doubts in understanding the stuff from LDD, please first
>>>> google it and then if you are unable to find any result. Ask the question
>>>> here on the mailing list. Always do your homework before asking. Read
>>>> articles on LWN.net, kernelnewbies.org and other such sites, they are
>>>> useful.
>>>>
>>>
>>>
>>>> Hey Brother.
>>>>
>>>
>>>
>>>> I don't mean layman literally, I mean guy who does not know about it. I
>>>> don't want to fight with you. I'm a BIOS programmer, you can understand my
>>>> C programming capability.   Let me summarize what I have done, I have built
>>>> kernels, I have applied them, I have built sample drivers, deployed them,
>>>>
>>>
>>>
>>>> What is your suggestion to get a high level grasp of  kernel and device
>>>> driver, What is your order of study for above three tutorials?
>>>>
>>>
>>>
>>>> is it Robert LKD first->LDD->essential linux driver?
>>>>
>>>
>>>
>>>
>> Please always use reply to all(or cc kernelnewbies) when replying.
>>
>> LKD is probably the easiest, I have no comparison between Essentials and
>> LDD, since I have not read essentials.
>> Comparatively ULK might be a bit difficult, but it is one of the best
>> books on the subject.
>>
>
> Mail looks some friction going in between us, so I did not want to mail to
> entire mailing list.
>
What are you talking about? There is no such thing.
I am just pointing you to right direction as much as I can, you should just
take that as hint.
Please do not send me any personal mails.


>
>> Thanks for your responses,
>>>>
>>> Krishna.
>>>>
>>>
>>>
>>>
>>>>>
>>>>> On Fri, Dec 13, 2013 at 6:30 PM, Anuz Pratap Singh Tomar <
>>>>> chambilketha...@gmail.com> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Dec 13, 2013 at 12:53 PM, s.v.krishna reddy <
>>>>>> svkr...@gmail.com> wrote:
>>>>>>
>>>>>>> Hello everyone,
>>>>>>>
>>>>>>> Could you just a easy and quick tutorial for learning device driver
>>>>>>> concepts, referring to a sample driver all the way?
>>>>>>>
>>>>>>> How about NO?
>>>>>> There is a reason for it be a long learning process. It would only
>>>>>> make you a terrible device driver writer and writing code which 
>>>>>> eventually
>>>>>> everyone will hate. Learn it properly by learning basic from LDD and then
>>>>>> move on to essential Linux device driver.
>>>>>>
>>>>>>
>>>>>>> Thanks,
>>>>>>> Krishna.
>>>>>>>
>>>>>>> ___
>>>>>>> Kernelnewbies mailing list
>>>>>>> Kernelnewbies@kernelnewbies.org
>>>>>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thank you
>>>>>> Warm Regards
>>>>>> Anuz
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thank you
>>>> Warm Regards
>>>> Anuz
>>>>
>>>
>>>
>>
>>
>>
>> --
>> Thank you
>> Warm Regards
>> Anuz
>>
> Thanks,
> Krishna.
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Device driver tutorial

2013-12-13 Thread Anuz Pratap Singh Tomar
On Fri, Dec 13, 2013 at 1:59 PM, s.v.krishna reddy wrote:

>
>
>
> On Fri, Dec 13, 2013 at 7:07 PM, Anuz Pratap Singh Tomar <
> chambilketha...@gmail.com> wrote:
>
>>
>>
>>
>> On Fri, Dec 13, 2013 at 1:26 PM, s.v.krishna reddy wrote:
>>
>>> Thanks for you response,
>>>
>>> There is always a way to say a layman in easy approach to get the
>>> attention first and them get into detail later, I was looking for that kind
>>> of tutorial. BTW, I was studying LDD, I'm not able to get much attention
>>> going through the chapters. It's getting tough to get the attention.I have
>>> looked at essential linux device driver. Looks very interesting to me. I
>>> think I need to be very focused for LDD. I was about to start chap 5. I
>>> think I have to first finish 1-5 chapters of essential linux device driver,
>>> and then come back to LDD.
>>>
>>> Thanks,
>>> Krishna.
>>>
>>>
>>> Please don't top post.(http://catb.org/jargon/html/B/bottom-post.html)
>> It may require multiple reading to fully understand. Read more books
>> related to unix/linux fundamental. If you have little knowledge of unix in
>> general(that is internals of unix) and/or OS, the book might be bit hard.
>> So build that understanding. Your 'C' should be particularly good if you
>> want to really learn device drivers, so work on that as well. Look at
>> Robert Love's LKD, it might help as well.
>> Device driver code is NOT meant for layman it is meant for device driver
>> engineers, so there is no such thing as easy approach.
>>
>> If you have doubts in understanding the stuff from LDD, please first
>> google it and then if you are unable to find any result. Ask the question
>> here on the mailing list. Always do your homework before asking. Read
>> articles on LWN.net, kernelnewbies.org and other such sites, they are
>> useful.
>>
>
>
>> Hey Brother.
>>
>
>
>> I don't mean layman literally, I mean guy who does not know about it. I
>> don't want to fight with you. I'm a BIOS programmer, you can understand my
>> C programming capability.   Let me summarize what I have done, I have built
>> kernels, I have applied them, I have built sample drivers, deployed them,
>>
>
>
>> What is your suggestion to get a high level grasp of  kernel and device
>> driver, What is your order of study for above three tutorials?
>>
>
>
>> is it Robert LKD first->LDD->essential linux driver?
>>
>
>
>
Please always use reply to all(or cc kernelnewbies) when replying.

LKD is probably the easiest, I have no comparison between Essentials and
LDD, since I have not read essentials.
Comparatively ULK might be a bit difficult, but it is one of the best books
on the subject.

Thanks for your responses,
>>
> Krishna.
>>
>
>
>
>>>
>>> On Fri, Dec 13, 2013 at 6:30 PM, Anuz Pratap Singh Tomar <
>>> chambilketha...@gmail.com> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Fri, Dec 13, 2013 at 12:53 PM, s.v.krishna reddy 
>>>> wrote:
>>>>
>>>>> Hello everyone,
>>>>>
>>>>> Could you just a easy and quick tutorial for learning device driver
>>>>> concepts, referring to a sample driver all the way?
>>>>>
>>>>> How about NO?
>>>> There is a reason for it be a long learning process. It would only make
>>>> you a terrible device driver writer and writing code which eventually
>>>> everyone will hate. Learn it properly by learning basic from LDD and then
>>>> move on to essential Linux device driver.
>>>>
>>>>
>>>>> Thanks,
>>>>> Krishna.
>>>>>
>>>>> ___
>>>>> Kernelnewbies mailing list
>>>>> Kernelnewbies@kernelnewbies.org
>>>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thank you
>>>> Warm Regards
>>>> Anuz
>>>>
>>>
>>>
>>
>>
>> --
>> Thank you
>> Warm Regards
>> Anuz
>>
>
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Device driver tutorial

2013-12-13 Thread Anuz Pratap Singh Tomar
On Fri, Dec 13, 2013 at 1:26 PM, s.v.krishna reddy wrote:

> Thanks for you response,
>
> There is always a way to say a layman in easy approach to get the
> attention first and them get into detail later, I was looking for that kind
> of tutorial. BTW, I was studying LDD, I'm not able to get much attention
> going through the chapters. It's getting tough to get the attention.I have
> looked at essential linux device driver. Looks very interesting to me. I
> think I need to be very focused for LDD. I was about to start chap 5. I
> think I have to first finish 1-5 chapters of essential linux device driver,
> and then come back to LDD.
>
> Thanks,
> Krishna.
>
>
> Please don't top post.(http://catb.org/jargon/html/B/bottom-post.html)
It may require multiple reading to fully understand. Read more books
related to unix/linux fundamental. If you have little knowledge of unix in
general(that is internals of unix) and/or OS, the book might be bit hard.
So build that understanding. Your 'C' should be particularly good if you
want to really learn device drivers, so work on that as well. Look at
Robert Love's LKD, it might help as well.
Device driver code is NOT meant for layman it is meant for device driver
engineers, so there is no such thing as easy approach.

If you have doubts in understanding the stuff from LDD, please first google
it and then if you are unable to find any result. Ask the question here on
the mailing list. Always do your homework before asking. Read articles on
LWN.net, kernelnewbies.org and other such sites, they are useful.


>
> On Fri, Dec 13, 2013 at 6:30 PM, Anuz Pratap Singh Tomar <
> chambilketha...@gmail.com> wrote:
>
>>
>>
>>
>> On Fri, Dec 13, 2013 at 12:53 PM, s.v.krishna reddy wrote:
>>
>>> Hello everyone,
>>>
>>> Could you just a easy and quick tutorial for learning device driver
>>> concepts, referring to a sample driver all the way?
>>>
>>> How about NO?
>> There is a reason for it be a long learning process. It would only make
>> you a terrible device driver writer and writing code which eventually
>> everyone will hate. Learn it properly by learning basic from LDD and then
>> move on to essential Linux device driver.
>>
>>
>>> Thanks,
>>> Krishna.
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>>
>>
>> --
>> Thank you
>> Warm Regards
>> Anuz
>>
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Device driver tutorial

2013-12-13 Thread Anuz Pratap Singh Tomar
On Fri, Dec 13, 2013 at 12:53 PM, s.v.krishna reddy wrote:

> Hello everyone,
>
> Could you just a easy and quick tutorial for learning device driver
> concepts, referring to a sample driver all the way?
>
> How about NO?
There is a reason for it be a long learning process. It would only make you
a terrible device driver writer and writing code which eventually everyone
will hate. Learn it properly by learning basic from LDD and then move on to
essential Linux device driver.


> Thanks,
> Krishna.
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Make File error

2013-12-05 Thread Anuz Pratap Singh Tomar
On Thu, Dec 5, 2013 at 12:19 PM, Chandan Jay Sharma wrote:

> Sometime back I faced similar error on my CentOS machine and after
> googling I fixed it in 2 steps.
>
> 1. ln -s /usr/src/kernels/*2.6.32-220.**el6.x86_64*
>  /lib/modules/2.6.32-220.el6.x86_64/*build*
> 2. ln -s 
> /lib/modules/2.6.32-220.el6.x86_64/*build*/lib/modules/2.6.32-220.el6.x86_64/
> *source*
>
> Can someone help me understand why this 2nd symbolic link (source-->build)
> required?
>
>
How hard is to understand not to top post, even when it is mentioned in one
of the mail?
Secondly, if you want to ask a question, please create a new thread.

This seems like distro specific requirements, which are more suitable to be
asked in distro mailing list.
Even if these are distro specific directory requirement it is very likely
to override the requirements by making changes in configuration files
and/or Makefile and/or .config to look for the given path. If at all you
change the directory location, you might want to be sure that no other
utility looks for those path e.g. other utilities which depend on kernel
source path like virtual machines etc.

> Thanks,
>
>
> On 4 December 2013 17:00, Sudip Mukherjee wrote:
>
>>
>>   Whats the error?
>>>
>> Hi Anil
 Please do not top post.
 For your error , please verify if
 /lib/modules/2.6.32-220.el6.x86_64/build is really linking to the folder
 containing the kernel files.

 Regards
 Sudip


>>> Thats the issue the link is not there how to create the link.
>>>
>>
>>
>> On your mails please always put cc to the list.
>> Even if it is centos the build file will be there. And it should have a
>> soft link to the folder containing your kernel source files. first please
>> find out where your source file is . In my system it is at
>> /usr/src/kernels/
>> In your it should be /usr/src/kernels/2.6.32-220.el6.x86_64
>>
>> After you find the folder , give the command  "sudo ln -s
>> /usr/src/kernels/2.6.32-220.el6.x86_64 /lib/modules/2.6.32-220.el6.
>> x86_64/build"
>>
>> Regards
>> Sudip
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>
>
> --
> ---
>
> < Chandan Jay Sharma >
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Major and minor numbers

2013-11-26 Thread Anuz Pratap Singh Tomar
On Tue, Nov 26, 2013 at 1:15 PM, Nav Kamal  wrote:

> Thanks but am already studying from this book. What  I understand from
> this is every driver is associated with a device and each of this relation
> has a unique major number associated with it and every device has a unique
> minor number which a kernel uses to reference it. Am I correct ?
>
>
Please always cc kernelnewbies in reply.
Do not top post(http://catb.org/jargon/html/T/top-post.html)
I would suggest reading this article about udev, things have changed a bit
http://www.linux.com/news/hardware/peripherals/180950-udev

> Regards,
> Navkamal Rakra
> On Nov 26, 2013 6:33 PM, "Anuz Pratap Singh Tomar" <
> chambilketha...@gmail.com> wrote:
>
>>
>>
>>
>> On Tue, Nov 26, 2013 at 11:06 AM, Nav Kamal  wrote:
>>
>>> Am a little stuck at major and minor numbers used to reference the
>>> connection between device file and device driver. Can please somebody
>>> theoretically explain how they work ?
>>>
>> http://www.makelinux.net/ldd3/chp-3-sect-2
>>
>>> Regards,
>>> Navkamal Rakra
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>>
>>
>> --
>> Thank you
>> Warm Regards
>> Anuz
>>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Major and minor numbers

2013-11-26 Thread Anuz Pratap Singh Tomar
On Tue, Nov 26, 2013 at 11:06 AM, Nav Kamal  wrote:

> Am a little stuck at major and minor numbers used to reference the
> connection between device file and device driver. Can please somebody
> theoretically explain how they work ?
>
http://www.makelinux.net/ldd3/chp-3-sect-2

> Regards,
> Navkamal Rakra
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Installing CentOs without NetFilter

2013-11-26 Thread Anuz Pratap Singh Tomar
On Tue, Nov 26, 2013 at 8:30 AM, Robert Clove  wrote:

> Hi All,
>
> Can it be possible to install Centos without installing the Netfilter.
>
>
http://www.centos.org/modules/tinycontent/?id=16

> Thanks
> Clove
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Embedded Toolchain

2013-11-18 Thread Anuz Pratap Singh Tomar
On Mon, Nov 18, 2013 at 4:52 AM, Anand Moon  wrote:

> Hi All,
>
> During compilation of openwrt it obviously create an embedded
> tookchain using the gcc, buildutils
> and the kernel for architecture i.e. (MIPS or ARM).
> So is it that this toolchain will work for that particular architecture
> board only and for that particular kernel.
>
> Particular board only: depends.
Particular arch only: mostly. Arm toolchain will not work for PPC or MIPS
and vice versa.

> Can this new toolchain replace the old toolchain for embedded boards of
> same architecture i.e. MIPS or ARM.
>
>  Likely, the cross compile toolchains can have a lot of compatabilty
issues. Which toolchain works with which arch and which version and which
model are highly specific to the type of toolchain and board in question.

> Please share your thoughts on this.
>
> -Anand Moon
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: What is the best distro for starting linux kernel development?

2013-11-13 Thread Anuz Pratap Singh Tomar
On Wed, Nov 13, 2013 at 12:49 PM, Geyslan Gregório Bem wrote:

> 2013/11/13 Mandeep Sandhu :
> >> Why not ask him? :-D
> >
> > Straight from the horse's mouth! :)
> >
> > -mandeep
> >
> > PS: Put your fire-retardant suit and fire away on LKML! :P
>
> I'm not so crazy at all. LOL!
>
> I don't think it is of much consequence anyway.  Though I am very inclined
to believe old timers mostly use either redhat based distros or Debian.


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: What is the best distro for starting linux kernel development?

2013-11-13 Thread Anuz Pratap Singh Tomar
On Wed, Nov 13, 2013 at 11:40 AM, Mandeep Sandhu <
mandeepsandhu@gmail.com> wrote:

> On Wed, Nov 13, 2013 at 5:00 PM, Anuz Pratap Singh Tomar
>  wrote:
> > Linus Torvalds and Alan Cox use Fedora(or other redhat distros), though
> Alan
> > talked about shifting to other distros due to his annoyance with Fedora.
>
> Nit -picking here...but Linus does not Fedora...if anything, I think,
> he _hates_ Fedora and Gnome (3)! :)
>
> A more informed answer on Quora:
>
> http://www.quora.com/Linux/What-Linux-distribution-does-Linus-Torvalds-use-on-his-MacBook-Air
>
It talks about what he uses on __Mac book air__,
Here is another link which says he used Fedora 9 on a __most__ of his
computers
http://news.oreilly.com/2008/07/linux-torvalds-on-linux-distri.html



>
> I saw a G+ post of his where he was very pleased with the Samsung
> pixel running ChromeOS. Though that was not for development purpose
> (only reading stuff).
>
> I read that whole discussion, he never said that he __hates__  Fedora, he
was expressing his dismay that the kernel was not updated with proper
wireless driver which are required for him to get the driver because that
machine(not sure which one) doesn't have an ethernet port.
But he does hate Gnome. Also from his post, he seems to be using Fedora
more often than any other distros.

>  -mandeep
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Are you interested in a Linux Kernel Off-topic Mailing List?

2013-11-13 Thread Anuz Pratap Singh Tomar
On Wed, Nov 13, 2013 at 11:20 AM, Gustavo da Silva  wrote:

> Or even who is not interested in Linux Kernel Off-topic Mainling List,
> just don't subscribe him/her in the list.
>
>
> 2013/11/13 Gustavo da Silva 
>
>> And... ...Why not?!
>>
>> Of course!! Topics as suggested by Jerry Zhang (Salary/working
>> environment, ...) is very interesting. And others topics may be "very"
>> interesting too.
>>
>> And if some e-mail posted is not interesting for someone, that someone
>> just not read the e-mail, and just move to trash!!!
>>
>> Peace out.
>> Gustavo.
>>
>>
>>
>> 2013/11/13 Jerry Zhang 
>>
>>> I am interested in something like Salary/working environment/, on
>>> different Country/Area/Industry. They make more sence, coming from the
>>> front line engineer other than all kinds of officially report.
>>>
>>>
>>> 2013/11/13 Mulyadi Santosa 
>>>
 On Sat, Nov 9, 2013 at 12:38 AM, Aldo Iljazi  wrote:
 > Hello everyone. I am thinking of creating a Mailing List for our
 > community but for unofficial topics. I think it would help to know
 each
 > other and it would expand our conversation into different areas.
 >
 > Politics and Religion are prohibited topics. I was thinking the areas
 of
 > discussion to be more on Science, Sports, Life, Philosophy etc.
 >
 > What do you think?

 Hi...

 Ideally, if I we still use the name "linux kernel", then it should be
 something related to linux kernel, but more relaxed.

 One thing to notice is that kernelnewbies is not a high traffic list
 and experience shows we're not that strict when talking in
 kernelnewbies, except that we have to reject non related kernel
 topics.

 So, I guess, off topic list might not be needed...but that's just me.

 --
 regards,

 Mulyadi Santosa
 Freelance Linux trainer and consultant

 blog: the-hydra.blogspot.com
 training: mulyaditraining.blogspot.com

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

>>>
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>>
>>
>> --
>> Atenciosamente,
>>
>> Gustavo da Silva
>> gustavodasi...@gmail.com
>>
>
>
>
> --
> Atenciosamente,
>
> Gustavo da Silva
> gustavodasi...@gmail.com
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> Little bit of off topic discussions are alright, I guess userland or some
tool related etc.
But anything else would be noise. Besides if there is another list, one may
or may not subscribe it.
By all means create a new list and post an advert, may be once or twice.


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: What is the best distro for starting linux kernel development?

2013-11-13 Thread Anuz Pratap Singh Tomar
Kernel development may not directly be related to the Distro. The choice of
distro is completely personal. If you have read kernel development books or
Linux in general you would have understood the same. Some distros come
ready with development tools right from onsets, for others you can use
repository for downloading and installing the tool. The kernel systems and
distros have become quite complicated for pretty much all major distros, so
the overhead is necessarily always there.
Linus Torvalds and Alan Cox use Fedora(or other redhat distros), though
Alan talked about shifting to other distros due to his annoyance with
Fedora.

Few important distros I would consider as a developer
Fedora: Pros: most development tools are installed by default and you can
get all others easily. It is pretty bleeding edge when it comes to adoption
of new open source technologies.
Cons: It might be buggy at times, it can be difficult for newbies
sometimes.
Debian: Pros: very stable releases, not so many experimental features, huge
number of packages, adheres closely to unix philosophy
Cons: fewer new releases, can be difficult to begin with or you are used to
redhat/suse based distros
Arch: Pros:newer distro, very favoured by everyone, very very comprehensive
user guides, good for development, does everything from the scratch, but
there are pre configured configs all over the place to choose from.
Cons: you should know a little bit as to what exactly are you doing, you
may have to manually configure package configuration files etc. I donno if
there are any bugs.


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Any interesting linux projects?

2013-09-06 Thread Anuz Pratap Singh Tomar
On Fri, Sep 6, 2013 at 12:03 PM, Matthias Beyer wrote:

> The website says
>
> "Most of these lists can be searched via the
> http://marc.theaimsgroup.com/ archive."
>
> That is something which needs to be fixed, or probably we need more user
friendly archiving and search system for this mailing list.
I have no idea, how to do this stuff, else I would have tried.
There is a huge amount of Info but all of it gets piled under the newer
mails.
-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Any interesting linux projects?

2013-09-06 Thread Anuz Pratap Singh Tomar
On Fri, Sep 6, 2013 at 8:16 AM, manty kuma  wrote:

> I would like to work on some open source Linux projects. Please share some
> interesting projects that i can work from home. I am not looking for
> anything specific. Anything would do. Any interesting debugging tool or
> some new feature or that of fixing errors in bugzilla.. Please list
> anything. Only thing is i Know only C and Assembly(AVR and ARM).
> I know i am far from contributing to the mainline kernel. So want to start
> from something small where less competition is there to start with. I think
> the project we choose depends on our current skillset, so is there any site
> that kind of lists these projects and order it based on the skills? :) No i
> guess. But still any good sites are also welcome.
>
> We had similar discussion on this mailing list a few days back, I would
highly suggest that you search archives of this mailing list.
-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Info Virtual Rootkit Blocker

2013-09-04 Thread Anuz Pratap Singh Tomar
On Wed, Sep 4, 2013 at 4:59 AM, Shubhashish Behera <
shubhashish_...@yahoo.co.in> wrote:

> There is a ongoing project is present under the kernel projects.
>
>
>
> http://kernelnewbies.org/KernelProjects/VirtRootkitBlocker?highlight=%28CategoryKernelProjects%29
>
>
Ok, First things first, do not top post and remove all html markings from
your mails.
Please send text only mails.
Secondly, it is a tentative project(or donno if Rik has done some work on
it already) and you are asking a very generic question about a potential
project. I am CCing Rik, so that he may be able to provide more insight.
This project is pretty difficult as mentioned by Rik already on the page,
so you may really want to see if you are even ready to undertake this one.
This would require a very good understanding of entire memory management
system of Linux Kernel(one of the most difficult things) and understanding
of hypervisor apis and virtualization infrastructure in kernel and related
software.
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Need help for getting started

2013-09-02 Thread Anuz Pratap Singh Tomar
On Mon, Sep 2, 2013 at 11:29 AM, 901...@gmail.com <901...@gmail.com> wrote:

> Hello all,
>
> I am a newbie here. I'd like to contribute in architectures, kernel
> features, virtualization, and drivers parts, but I don't know where is a
> good way to start. I have looked for some advice but I have had a hard
> time to understand (Some advice is too general. Some used too old kernel
> versions, so I cannot catch up when reading the newer ones). I learned
> about OS, C language, and assembly language. I can configure and build
> the kernel. Would someone guide me where should I start? I appreciate
> for your helping.
> Sorry if there are some errors in my writing, because English is not my
> native language.
>
> Get Robert Love's book Linux kernel development. It is a good start and
then you can search around the net for your way around.
Reading pages from kernelnewbies.org and lwn.net and other website should
also help.

> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Info Virtual Rootkit Blocker

2013-09-02 Thread Anuz Pratap Singh Tomar
On Mon, Sep 2, 2013 at 7:07 AM, Shubhashish Behera <
shubhashish_...@yahoo.co.in> wrote:

> Please provide me some info about virtual Rootkit blocker.
>
> Probably not the right mailing list. Look for security related mailing
lists. This is kernel mailing list.

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to Port Linux Kernel

2013-08-19 Thread Anuz Pratap Singh Tomar
On Mon, Aug 19, 2013 at 2:13 PM, Robert Clove  wrote:

>
>
>
> On Mon, Aug 19, 2013 at 6:22 PM, Alexandru Juncu  wrote:
>
>> On 19 August 2013 15:35, Robert Clove  wrote:
>> > Hello All,
>> >
>> > I am an software Guy have some knowledge about device drivers.
>> > I want to understand porting Linux kernel on new PCI board.
>> > I have no idea from where to start and how.
>> > Please guide me through some good books and tutorials.
>> >
>> > Please guide.
>>
>> Hello!
>>
>> I don't think you want to 'port' Linux on the board. You port the
>> kernel on a new CPU processor/architecture.
>> I think what you want is to make a device driver for your device (that
>> connects via PCI).
>>
>> What you should do is search for an existing device driver of a
>> similar board and take the code for that one and examine it. Then take
>> the technical specs of the new board and see the differences between
>> that and the old board and implement the differences in a new code
>> that will be the new device driver.
>>
>
>
> Sir,
>
> Actually what i want to do is suppose the hardware team give you a new
> board and now you want to run Linux kernel on it,
> What one should do to port Linux on the new board.
>
> That is a very open ended question.
You are talking about entire BSP(Board support package) here.
First thing to ask is whether or not do you have a bootloader available for
the board.
Depending on what kind of board it is, you might either want to get uboot
or grub or some other bootloader. For example on PPC board from ep, uboot
is very common.
You may need to compile the right bootloader and burn it to the flash using
a hardware debugger like JTAG BDI.
Once you have the bootloader in there, then only can you proceed with the
kernel. In most cases( if it is not a custom board) you should be able to
get the relevant config from the board manufacture's site or someone else
who provided development toolchain for the board.
You may require to setup the cross compile toolchain for the board.
I would highly recommend that you _BUY_ this book written by Karim Yaghmour
called as
Building embedded system(whichever is the latest edition), if you really
want to learn about this stuff.
Second place ofcourse is Free-electron website, they have a lot of stuff
about cross compiling and embedded stuff in general.

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Understanding disassembly x86 + understanding function call + parameter pass and stack frame

2013-08-06 Thread Anuz Pratap Singh Tomar
On Tue, Aug 6, 2013 at 10:43 AM, Saket Sinha wrote:

> Actually I need to ask you something rather than offering a solution.
> Actually I have a similar sort of situation so I think I would ask here.
>
>
Please don't do this. Ask the question separately. There are better chances
of getting answer from looking at the topic of mail then piggybacking at
some else's mail. Not to mention it is just bad mailing list netiquettes.
Secondly do not top post. I don't understand why is so hard to follow a
simple rule which is pretty much a norm on all open source mailing list.
May be this will help
http://kernelnewbies.org/mailinglistguidelines

> The issue I am facing is that I have been developing a filesystem
> driver(over x86) which has become  "unstable"  by which I mean ,  at
> compile time it is building but during runtime it fails when I call the
> corresponding APIs from the user-space.
>
> In order to find out exactly where it is failing, I need to debug the
> driver.
> I am very new to kernel development. I have heard about KGDB and KDB but
> it takes quite a lot to get them working so waht are the other tools
> available?
>
> Well if you are debugging a kernel driver at filesystem level it will take
time, there are really no shortcuts and kgdb might be your best bet.
You can have a look at debugfs which might be useful
http://www.linuxforu.com/2010/10/debugging-linux-kernel-with-debugfs/
Another link I found by simple search
http://confluence.jetbrains.com/display/~roman.shevchenko/Debugging+native+file+system+watcher+for+Linux

Lastly there was some discussion on Filesystem debugging on *this* very
mailing list, so I would suggest you search in archives.


 Regards,
> Saket Sinha
>
>
>
>
> On Tue, Aug 6, 2013 at 2:36 PM, nidhi mittal hada  > wrote:
>
>>
>>
>> -- Forwarded message --
>> From: nidhi mittal hada 
>> Date: Tue, Aug 6, 2013 at 2:16 PM
>> Subject: Understanding disassembly x86 + understanding function call +
>> parameter pass and stack frame
>> To: Kernelnewbies 
>> Cc: Mulyadi Santosa 
>>
>>
>> Hi All,
>>
>> I am using crash tool to analyze core dump obtained from red hat linux on
>> x86_64 platform.
>>
>> And crash tool gives a stack trace of panic.
>> But its does not show function parameters which were passed in this stack
>> trace.
>>
>> So i have to disassemble and understand the value of parameters passed to
>> these functions, while it panicked.
>> Which i am not able to understand much.
>>
>> I would request help in knowing, how to understand disassembled function
>> call , on x86_64 arch.
>>
>> Putting some of the doubts..
>>
>> a)like which sequence the parameters, return address, etc are pushed on
>> stack?
>> b)Which registers are used, if some registers play some spl. role ?
>> c)lets say for a program a.c i use gcc -S a.c ...do we have some other
>> command to generate
>> somewhat more clear assembly code, may be with some comments in english
>>
>> Any kind of help in understanding this will be appreciated ..
>>
>> Thanks
>> Nidhi
>>
>>
>>
>>
>>
>> --
>> Thanks & Regards
>> Nidhi Mittal Hada
>>
>> http://nidhi-searchingmyself.blogspot.com/
>>
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: On Robert's Love Linux kernel development 3rd edtion

2013-07-07 Thread Anuz Pratap Singh Tomar
On Sun, Jul 7, 2013 at 11:45 AM, TD  wrote:

> Hi,
> I'm trying to lean linux kernel dev.
> I bought Robert's love book : "Linux Kernel develpment"
>
> This book is based on the linux version 2.6.
> I can see  in the kernel.org site that the latest stable version of ther
> kernel is 3.9.9.
>
> So my question is : what is the most efficient way to learn from this book
>  ?
> 1) Download the 2.6 version and follow the examples and explanations based
> from this version
> 2) Download the 3.9.9 version and try to adapt the examples and
> explanations of the book.
> 3) Download both so that I can see the differences.
>
> Any other idea or suggestion is very welcomed.
>
> Don't LEAN too much :D
I think newer version is better, Most of the fundamentals remain same
throughout but you have to dig around a bit to find out what exactly
changed.
Even if you choose an older version, you would still have to work your way
upwards to newer kernel(provided you are thinking of contributing to
upstream).
Adapting examples would be pretty good idea, though it may require some
work if you are not very familiar with the basics. Reading mailing lists,
kernelnewbie site and LWN articles should also be helpful.


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


searchability of kernelnewbies mailing list archive.

2013-05-01 Thread Anuz Pratap Singh Tomar
Hi all,
We do get a lot of good content in this mailing list and a lot of question
get repeated quite often. I tried to search for few topics using various
strings in google, it doesn't seem to pick up the right content from the
archive. I have been following this list for a while so I am sure these
topics were discussed for sure say about 3-4 months back. If I go to to
archive there is no way of searching for contents or if there is it is not
very prominently visible. Could this behaviour be fixed and make this
mailing list more searchable either through google or directly? I have seen
a few sites use google as default searching mechanism for the site, can
this feature be implemented to newbies site?

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[OT]kernel internship for women

2013-04-30 Thread Anuz Pratap Singh Tomar
Hi all,
Not sure if you have seen this one already but this was posted on Linux
foundation website and I am sure there may be some aspiring female kernel
hackers who might benefit from this internship. Rest of the details are
already in the link

https://www.linux.com/news/featured-blogs/167-amanda-mcpherson/716409-announcing-outreach-program-for-women-internships-for-the-linux-kernel-please-apply

-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: SNORT/SURICATA LEARNing

2013-04-16 Thread Anuz Pratap Singh Tomar
On Tue, Apr 16, 2013 at 12:17 PM, Robert Clove wrote:

> Dear All,
>
>
> I want to learn the snort and suricata whats the best way to learn it.
>
See there are ample tutorials out there if you want to configure snort for
particular box.
If you want to get into learning about how to hack snort, code and snort
mailing list should be your friend.
As I understand correctly in order for snort to be any useful you need to
have a lot of useful configuration files for different rules.
You may start looking at these files.

> I have read the architecture.
> Now i want to go into the code
> Whats the best way plz tell
>
>
> Thanks
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Interrupt Handler of Ethernet Device

2013-04-05 Thread Anuz Pratap Singh Tomar
On Fri, Apr 5, 2013 at 1:11 PM, Robert Clove  wrote:

> Thanks for the link.
> I have another query too..should i ask right now?
>
>
> If the question is relevant to current discussion, please ask here but if
it just piggyback to totally different topic at hand make a new thread.
Also in case of doubt:
http://www.catb.org/esr/faqs/smart-questions.html

On Fri, Apr 5, 2013 at 5:36 PM, Rami Rosen  wrote:
>
>> Robert,
>> You should look for the request_irq() method in the driver.
>> This method registers an interrupt handler.
>> For example, you can look in:
>> http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/e100.c
>> ...
>> ...
>> if ((err = request_irq(nic->pdev->irq, e100_intr, IRQF_SHARED,
>>  nic->netdev->name, nic->netdev)))
>>
>> ...
>>
>> This means that e100_intr is registered as an interrupt handler.
>>
>> Best,
>> Rami Rosen
>> http://ramirose.wix.com/ramirosen
>>
>>
>> On Fri, Apr 5, 2013 at 11:50 AM, Robert Clove 
>> wrote:
>> > Hello All,
>> >
>> >
>> > I am new here.
>> > I want to know the interrupt handler of the ethernet card and where can
>> i
>> > find the definition of it so as i can clear the flow of packet
>> reception.
>> >
>> > Thanks
>> > Robert
>> >
>> > ___
>> > Kernelnewbies mailing list
>> > Kernelnewbies@kernelnewbies.org
>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>> >
>>
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Anuz Pratap Singh Tomar
On Tue, Mar 19, 2013 at 3:53 PM, Dave Hylands  wrote:

> Hi Arlie,
>
>
>
> On Tue, Mar 19, 2013 at 8:34 AM, Arlie Stephens 
> wrote:
> >
> > Hi Folks,
> >
> > I'm trying to understand the linux way of doing things, so as to write
> > code which will be easier for experienced linux kernel people to
> > understand. Yesterday I wound up in a 3 engineer discussion about
> > something conceptually simple, that just didn't want to be done with
> > the tools at hand; what's worse, the only ways I could see to do it
> > were (a) do my own linked lists or (b) write some routines that relied
> > kind of heavily on the never-mentioned-in-documentation details of
> > linux/list.h   I'll probably go with option (b), as that seems less
> > insane, but I thought I might as well ask here as well.
> >
> > Here's the problem. I have a collection of resources. Call them
> > A,B,C,D but note that resources get added at run time, so I don't know
> > how many to expect. I want to go through them in a round robin
> > fashion, but not all at once. On the first request, I use A. On a
> > later request I use B, etc. This seems to me to map naturally to a
> > circular linked list, with a "cursor" - a pointer of some kind to the
> > next one I want to use. To make my specific situation more
> > interesting, I actually have multiple cursors - that may or may not
> > happen to point to the same node at any given time, but usually will
> > not.
> >
> > This is where I wish I could draw pictures in ascii emails ;-)
> > Perhaps the following will come through halfway sanely:
> >
> > C1 C2 C3
> > V /V
> > A<->B<->C-<->D
> > ^^
> >
> > list.h implements a circular linked list - see for example
> > http://www.makelinux.net/books/lkd2/app01lev1sec2 - so I thought this
> > would be easy and natural. But then I discovered there was no such
> > thing as a list_next(). OK, I can write it - Something like:
> > cursor->resource = list_entry(cursor->resource->link.next, struct
> resource, link);
> > But the fact there was no interface made me ask advice from colleagues.
> > And that's when the debate erupted.
> >
> > First of all, it's unclear whether that would even work. If the list
> > is initialized following the standard pardigm, there may be a "head"
> > element embedded in the list, which all the existing interfaces know
> > to ignore. I.e.
>
> So the real secret is that it's a circular list with a dummy node. This
> dummy node just has head/tail pointers and nothing else.
>
> So when you're advancing through the list, instead of testing list->next
> for NULL you check to see if list->next is equal to the list head.
>
> So if you want your cursor object to be self-contained, then it should
> include both a list head and a list current.
>
> If you want your cursor to be generic, then it should probably look
> something like:
>
> struct list_cursor {
> struct list_head *list;
> struct list_head *curr;
> };
>
> I think you'll find that the cursor operations make a lot more sense if
> you keep the cursor generic and try not to include the type information
> about the list node.
>
> To initialize the cursor:
>
> cursor->list = somelist
> cursor->curr = somelist
>
> To advance to the first node (remember the list has a dummy head node)
>
> cursor->curr = cursor->curr->next
>
> If the result is == cursor->head then there aren't any nodes except for
> the dummy node (i.e. list is empty)
>
> To get at the actual entry, use list_entry as per usual.
>
> I see RPDay has posted the link to his little tutorial, and I was going to
> do the same, but I didn't have it saved anywhere. I highly recommend
> reading through that.
>
> Besides the Robert's link you can also have a look at FAQ on kernel newbies
http://kernelnewbies.org/FAQ/LinkedLists

LDD also covers it
http://www.makelinux.net/ldd3/chp-11-sect-5

There is a good explanation of kernel linked list in Robert Love's book as
well.

 --
> Dave Hylands
> Shuswap, BC, Canada
> http://www.davehylands.com
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: for interested folks, i'll announce new kernel tutorials via twitter

2013-03-17 Thread Anuz Pratap Singh Tomar
On Sun, Mar 17, 2013 at 1:37 PM, Robert P. J. Day wrote:

>
>   as i don't want to seem like i'm spamming this list with notes about
> new, posted kernel tutorials, people who want to stay on top of these
> are welcome to follow me on twitter at @rpjday. everything written and
> posted will be freely available (creative commons license), and even
> after it's incorporated into future training courses, even those
> courses will be released under the CC so you'll never lose access to
> any of it. so feel free to play along.
>
> I can see why you are reluctant to post the links especially after the
last mail.
But please do post your links here, I am very sure a lot of people will
benefit from these tutorials.
I do follow you on twitter due to these posts, but this list serves caters
to much wider audience, some of whom may not even be using twitter.

> rday
>
> --
>
> 
> Robert P. J. Day Ottawa, Ontario, CANADA
> http://crashcourse.ca
>
> Twitter:   http://twitter.com/rpjday
> LinkedIn:   http://ca.linkedin.com/in/rpjday
> 
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Major/minor numbers

2013-03-05 Thread Anuz Pratap Singh Tomar
On Tue, Mar 5, 2013 at 6:32 AM, Shraddha Kamat  wrote:

> Does the max number of devices supported by Linux limited by major minor
> number ? Can you please give me some pointers regarding this.
>
http://stackoverflow.com/questions/14833467/maximum-values-of-major-and-minor-numbers-in-linux

> -- Shraddha
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: .a library support for android

2013-02-20 Thread Anuz Pratap Singh Tomar
On Wed, Feb 20, 2013 at 11:16 AM, Shivaprasad Imdapur <
shiv.imda...@gmail.com> wrote:

> Hi All,
>
>   I got some library file to support Biometric sensor device for android.
> The library is libfpc4030.a
>
>  My Doubts are,
>
> 1. What is *.a" file?
>
A bit of googling would reveal that *.a are static library files on any
unix system.


>
> 2. Is libfpc4030.a is an driver support library ?. If so where exactly
> keep this in android source code and compile?
>
A better place to ask this question would be android mailing list.

>
> 2. These library file  will communicate directly to hardware or we need to
> write any driver support code ?
>
AFAIK, the libraries make system call to kernel which in turn interacts
with hardware using device drivers.


>
>
> Thanks
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: gdtr value

2013-02-20 Thread Anuz Pratap Singh Tomar
On Tue, Feb 19, 2013 at 10:18 PM, horseriver  wrote:

> On Mon, Feb 18, 2013 at 12:25:43PM +0000, Anuz Pratap Singh Tomar wrote:
> > On Mon, Feb 18, 2013 at 1:55 AM, horseriver 
> wrote:
> >
>
> > Intel® 64 and IA-32 Architectures
> > Software Developer’s Manual
> > Volume 3A:
> > System Programming Guide, Part 1
> > page 65
> >
> > The linear address of the base of the GDT is contained in the GDT
> register
> > (GDTR);
> > the linear address of the LDT is contained in the LDT register (LDTR).
> >
>
>Thanks!
>
>As the value is a linear address , so when  load an segment descriptor
> from an address ,
>such as lss ubstruction: lss 0x10023,%esp , cpu will check to make sure
>  this stack descriptor
>exist in gdt .
>So , we will get a linear address by the gdtr value and the
> descriptor's index , then  *if this linear address*
>has not phisical page mapped , it will cause a pagefault trap.then ,how
> to resolve this trap?
>
>
> Please use reply all or add kernelnewbies to CC
I am not very sure of how this trap will be resolved, but you can have a
look at this:
Understanding Linux Kernel
Section 9.4

 http://www.makelinux.net/books/ulk3/understandlk-CHP-9-SECT-4

>
> >
> > However for 32 bit registers, this document provides some details in
> > protected mode:
> >
> > http://home.swipnet.se/smaffy/asm/info/PMODEDetailedApproach.txt
> >
> >
> >
> > > thanks!
> > >
> > > ___
> > > Kernelnewbies mailing list
> > > Kernelnewbies@kernelnewbies.org
> > > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> > >
> >
> >
> >
> > --
> > Thank you
> > Warm Regards
> > Anuz
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: gdtr value

2013-02-18 Thread Anuz Pratap Singh Tomar
On Mon, Feb 18, 2013 at 3:05 PM, Anuz Pratap Singh Tomar <
chambilketha...@gmail.com> wrote:

>
>
> On Mon, Feb 18, 2013 at 5:07 AM, horseriver  wrote:
>
>> hi:)
>>
>>   I have compiled a .S file ,using command gcc -c x.S -o x.
>>   Then I use objdump to look up its asm code, even find that some code is
>> not the
>>   same as that .S file , more important is , some code in origin  .S file
>> has disappear .
>>
>>   what is about the reason ? If it is due to version , why some code
>> chould get lost after compile?
>>
>> Couple of things
> 1. Please don't piggy back questions over the unrelated topic, that is
> totally misdirecting the discussion.
> 2. You ask a lot of question related to compilation and stuff, which are
> off-topic here, why not READ a little bit more or consult relevant
> documentation?
> 3. You seem to do no homework before asking viz googling or reading basic
> books on relevant topic for example in this case reading a book on assembly
> language programming.
>
> When you write any assembly code(or for that matter any code) your code is
> written to be read by HUMANS and not machines. For machines a lot of that
> code is redundant and has no use so machine code will be generated in such
> a form that it is most optimized for the execution. For example take any
> *.c code and do
>
> #gcc -S *.c
> you will see an equivalent assembly code. It may not exactly be similar to
> the code which you will write in assembly for same logic. There are some
> rules according to which compilers generate code, please read some book on
> compilers and lex and yacc.
>
>
> Some more info about objdump and assembly code  and why they are
different.
http://stackoverflow.com/questions/4309771/disassembling-modifying-and-then-reassembling-a-linux-executable
And bit of correction:
s/it is most optimized for the execution/it is optimized for compilation if
there are no optimization flags used/


>
>> thanks!
>>
>
>
>
> --
> Thank you
> Warm Regards
> Anuz
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: gdtr value

2013-02-18 Thread Anuz Pratap Singh Tomar
On Mon, Feb 18, 2013 at 5:07 AM, horseriver  wrote:

> hi:)
>
>   I have compiled a .S file ,using command gcc -c x.S -o x.
>   Then I use objdump to look up its asm code, even find that some code is
> not the
>   same as that .S file , more important is , some code in origin  .S file
> has disappear .
>
>   what is about the reason ? If it is due to version , why some code
> chould get lost after compile?
>
> Couple of things
1. Please don't piggy back questions over the unrelated topic, that is
totally misdirecting the discussion.
2. You ask a lot of question related to compilation and stuff, which are
off-topic here, why not READ a little bit more or consult relevant
documentation?
3. You seem to do no homework before asking viz googling or reading basic
books on relevant topic for example in this case reading a book on assembly
language programming.

When you write any assembly code(or for that matter any code) your code is
written to be read by HUMANS and not machines. For machines a lot of that
code is redundant and has no use so machine code will be generated in such
a form that it is most optimized for the execution. For example take any
*.c code and do

#gcc -S *.c
you will see an equivalent assembly code. It may not exactly be similar to
the code which you will write in assembly for same logic. There are some
rules according to which compilers generate code, please read some book on
compilers and lex and yacc.




> thanks!
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: gdtr value

2013-02-18 Thread Anuz Pratap Singh Tomar
On Mon, Feb 18, 2013 at 1:55 AM, horseriver  wrote:

> hi:)
>
>   The gdtr reg saves the base address of gdt , whether is this address a
> linear address or phisical address ?
>
According to
Intel® 64 and IA-32 Architectures
Software Developer’s Manual
Volume 3B:
System Programming Guide, Part 2

for 64 bit machines:

On processors that support Intel 64 architecture, the base-address fields
for FS,
GS, GDTR, IDTR, and TR must contain canonical addresses.
Look for definition of canonical addresses here:
http://en.wikipedia.org/wiki/X86-64


According to this book all addresses in GDTR, LDTR and IDTR are linear
addresses
http://books.google.co.uk/books?id=l8QPUGuElFwC&pg=SA7-PA15&lpg=SA7-PA15&dq=GDTR+32+bit&source=bl&ots=4rS-pTNmaE&sig=CasnhDIFc9pVr0fsAlNqAod-xFc&hl=en&sa=X&ei=vRoiUZXDAojK0QXf8IHYBA&ved=0CEgQ6AEwBQ#v=onepage&q=GDTR%2032%20bit&f=false

Intel® 64 and IA-32 Architectures
Software Developer’s Manual
Volume 3A:
System Programming Guide, Part 1
page 65

The linear address of the base of the GDT is contained in the GDT register
(GDTR);
the linear address of the LDT is contained in the LDT register (LDTR).


However for 32 bit registers, this document provides some details in
protected mode:

http://home.swipnet.se/smaffy/asm/info/PMODEDetailedApproach.txt



> thanks!
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: kernel source code tree

2013-02-10 Thread Anuz Pratap Singh Tomar
On Sat, Feb 9, 2013 at 3:48 PM, sunil  wrote:

> Hi all,
>
> need help, I am trying to write simple device driver. But before that
> i need to download kernel source code tree
> someone please explain how to download  this and configure. I am very
> new to this. I am using ubuntu 12.04
>
> http://www.kernel.org/faq/
>
 http://www.tldp.org/docs.html#howto


> thanks & regards
> sunil A S
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: hd controller

2013-02-07 Thread Anuz Pratap Singh Tomar
On Thu, Feb 7, 2013 at 6:13 PM,  wrote:

> On Thu, 07 Feb 2013 16:19:33 +0800, horseriver said:
> > hi:)
> >
> >I am curious about how hd controller work .
> >When user am reaing/writing hd ,it was implemented by sending command
> >to hd controller's special port.Then ,how does the controller know
> >a new command has received?
> >
> >In this procedure , what work does the hd driver do ?
>
> You may wish to get a copy of 'Linux Device Drivers, 3rd Edition'
> and read it before posting lots of questions here.
>
> A free version is available online, and last I checked it was the very
> first hit if you google for 'Linux device drivers".
>
> This!
Please read LDD, LKD and ULK fully before asking questions.

> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: /root/.debug/ ... ?

2013-02-05 Thread Anuz Pratap Singh Tomar
On Tue, Feb 5, 2013 at 10:22 AM, Shraddha Kamat  wrote:

> On Tue, 2013-02-05 at 10:14 +0000, Anuz Pratap Singh Tomar wrote:
> > 8a73921f509a12a1cd7fb49dd8d1203197294c9e
>
> # git show 8a73921f509a12a1cd7fb49dd8d1203197294c9e
> fatal: bad object 8a73921f509a12a1cd7fb49dd8d1203197294c9e
>
> not sure if relevant but have a look

 http://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html

>
> -- Shraddha
>
>


-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Kernel DSO ?

2013-02-05 Thread Anuz Pratap Singh Tomar
On Tue, Feb 5, 2013 at 3:02 AM, Mulyadi Santosa
wrote:

> On Tue, Feb 5, 2013 at 9:13 AM, Shraddha Kamat  wrote:
> > What is a kernel DSO ? I encountered it while
> > I was reading perf code.
>
> AFAIK, it's a virtual "library", which act as a "hub" when user space
> application does system call.
>
> Specifically, when one does system call, it jumps to this DSO. Then,
> IIRC, this DSO determines whether to use int 80h or sysenter/syscall
> (for x86). Following it up, system call flows as usual.
>
> You can see this DSO's address by using cat /proc/self/maps. Look for
> "vdso".
>
> Some googling
 http://lkml.indiana.edu/hypermail/linux/kernel/0306.2/0674.html

> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: /root/.debug/ ... ?

2013-02-05 Thread Anuz Pratap Singh Tomar
On Tue, Feb 5, 2013 at 6:52 AM, Shraddha Kamat  wrote:

> Might be a silly question - but since I am a newbie I am trying to
> understand the reason for existance for most of the stuff that I find
> while reading the code --- here is my question --
>
> I see that there is a directory - /root/.debug/lib/modules/3.8.0-rc5
> +/kernel/net/8021q/8021q.ko/8a73921f509a12a1cd7fb49dd8d1203197294c9e
> Why is this directory here for ?
>
> What is this file 8a73921f509a12a1cd7fb49dd8d1203197294c9e ?
>
> Have you tried looking for git commit for that number?

> -- Shraddha
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: open image file

2013-02-03 Thread Anuz Pratap Singh Tomar
On Sun, Feb 3, 2013 at 2:03 AM, horseriver  wrote:

> hi:
>
>   Is there mothod to look into a image file ?
>   How can I know its filesystem?
>
>   I have mounted my fd0 to /mnt with -t tmpfs ,but I find
>   nothing under /mnt.How can I touch the files in image?
>
> I think you need to mount it as loopback device
http://www.andremiller.net/content/mounting-hard-disk-image-including-partitions-using-linux

>
> thanks!
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to make a bootable hard disk image?

2013-01-31 Thread Anuz Pratap Singh Tomar
On Wed, Jan 30, 2013 at 11:05 PM, horseriver  wrote:

> On Thu, Jan 31, 2013 at 03:09:00PM +0700, Mulyadi Santosa wrote:
> > On Thu, Jan 31, 2013 at 4:44 AM, horseriver 
> wrote:
> > > On Thu, Jan 31, 2013 at 12:51:36PM +0700, Mulyadi Santosa wrote:
> > >> On Thu, Jan 31, 2013 at 2:52 AM, horseriver 
> wrote:
> > >> > hi:)
> > >> >
> > >> >I want to boot kernel from hard disk image ,because i am using a
> virtual machine .
> > >> >How to make this bootable image   ?
> > >> >After I  make it ,how do I put kernel Image into this image?
> > >>
> > >> If you are using qemu or kvm, you don't need to put the kernel inside
> > >> the virtual machine image.
> > >>
> > >> Just use -kernel (or possibly -initrd) parameter and pass the path and
> > >> file name of your kernel image and you're good to go.
> > >
> > >   The path?
> > >   How to write the path? You mean the virtual machine can share
> physical
> > >   hard disk with the host ,without its own hard disk image ?
> >
> > assume your virtual disk image is in /tmp/guest.img.
> >
> > Kernel is /tmp/kernel-image. Initrd is /tmp/initrd
> >
> > Usually, I invoke it this way:
> > qemu -kernel /tmp/kernel-image -initrd /tmp/initrd -hda /tmp/guest.img
>
>   thanks!
>   how does the /tmp/kernel-image made ?
>
> Really?
your bzImage is your kernel-image.

>
> >
> > Hope you got the idea
> >
> >
> > --
> > regards,
> >
> > Mulyadi Santosa
> > Freelance Linux trainer and consultant
> >
> > blog: the-hydra.blogspot.com
> > training: mulyaditraining.blogspot.com
> >
> > ___
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Kernel kallsyms

2013-01-31 Thread Anuz Pratap Singh Tomar
On Thu, Jan 31, 2013 at 10:28 AM, Shraddha Kamat  wrote:

> What are kernel kallsyms - and why are they used ?
>
> Please do google a bit before asking question. Any kernel book would give
explanation about kernel symbols( I think Robert Love's book have good
discussion about kallsyms).
Here is third google search result of you
http://onebitbug.me/2011/03/04/introducing-linux-kernel-symbols/

> -- shraddha
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: use of EXPORT_SYMBOL()

2013-01-29 Thread Anuz Pratap Singh Tomar
On Tue, Jan 29, 2013 at 8:31 AM, Mulyadi Santosa
wrote:

> On Tue, Jan 29, 2013 at 2:58 PM, Adel Qodmani  wrote:
> > And you're allowed to use it in Kernel modules too? I mean I can expose a
> > function in a kernel module that I am building by using EXPORT_SYMBOL?
>
> technically, yes, you're allowed to export symbol(s) in your kernel
> module. Of course, during compiling, module that uses that exported
> symbol will be said as using unknown symbol (but since likely you will
> use "extern", it will still go on).
>
> During module linking in kernel space, that "unknown symbol name" will
> be resolved. Just like what we see when a program link to function(s)
> or variable(s) in dynamic libraries.
>
>
> I think this is explained very well in LDD chapter 1 or 2) and LKD. Kernel
modules are in kernel space, so if you export a symbol it is available to
the kernel.

>  --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: boot linux2.6 in virtual machine

2013-01-29 Thread Anuz Pratap Singh Tomar
On Mon, Jan 28, 2013 at 11:39 PM, horseriver  wrote:

> hi:)
>
>   I have compiled a kernel of 2.6 version . there is an bzImage file
> generated and I
>
Which version of 2.6? I am sure you are aware that the current kernel is
3.7.x and thus most of the newer application would support newer version
and not older version

>   have got a initrd.img file here.
>
initramfs is newer ramdisk, why are you using an older format?

>   Now ,I want to boot  this kernel , Need I have a boot-loader ? Is GRUB
> right for this?
>
Ofcourse, how else would you boot?
Grub should do the work.

>   Need I mount kernel image and initrd.img on /dev/XXX ?  If need, when to
> do mount them?
>
you really need to read more about the intended virtual machine and the
process itself. It seems you have not done enough research to ask such
questions. I would highly suggest that you read either about KVM or Xen,
though I would personally go for usermode linux.

>
>
> thanks!
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Linux Kernel Networking document (free, 178 pages doc)

2013-01-28 Thread Anuz Pratap Singh Tomar
On Mon, Jan 28, 2013 at 4:53 PM, Rami Rosen  wrote:

> Hi everyone,
> You can find here an up to date and detailed document in pdf (178
> pages) about Linux Kernel Networking; going deep into design and
> implementation details as well as the theory behind it:
> http://media.wix.com/ugd//295986_931b8bcf34d93419d46e05b5aa5d0216.pdf
>
> I believe that developers/sysadmins/researchers/students may find help
> with it.
>
>
> regards,
> Rami Rosen
>
> http://ramirose.wix.com/ramirosen
>
> __

very well done! thank you for sharing.

> _
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: GRUB question

2013-01-28 Thread Anuz Pratap Singh Tomar
On Sun, Jan 27, 2013 at 10:50 PM, horseriver  wrote:

> On Mon, Jan 28, 2013 at 03:07:13PM +0700, Mulyadi Santosa wrote:
> > On Mon, Jan 28, 2013 at 5:10 AM, horseriver 
> wrote:
> > >   Does this /boot/initrd.img file come out when building kernel ?
> > >   how to build it?
> >
> > you use your distro supplied /sbin/mkinitrd or /sbin/mkinitramfs
>
>   Thanks!
>
>   I mean its content is from where ?
>   After /sbin/mkinitrd , what stuff is needed to  fill it ?
>
>
> Third link if you search make initrd
http://www.ibm.com/developerworks/linux/library/l-initrd/index.html

Nowadays distros use more sophisticated  programs like dracut.
https://dracut.wiki.kernel.org/index.php/Main_Page

 >
> > --
> > regards,
> >
> > Mulyadi Santosa
> > Freelance Linux trainer and consultant
> >
> > blog: the-hydra.blogspot.com
> > training: mulyaditraining.blogspot.com
> >
> > ___
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: how to pick up a patch from a mail

2013-01-24 Thread Anuz Pratap Singh Tomar
On Sun, Jan 20, 2013 at 6:26 AM, Asutosh Das  wrote:

> Hi
> Say I want to pick up a patch
>
> https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC4QFjAA&url=http://lists.linaro.org/pipermail/linaro-kernel/2011-April/000250.html&ei=FXL5UIy-KYKErQf47oGgAg&usg=AFQjCNGVUHMUQJ6gAhSkXJb7rWO6h_xA9A&bvm=bv.41248874,d.bmk
>
> how do i apply it directly to my branch without copying it ?
>
> Why is it important that you do not copy it?
I would prefer to get the git commit id from the branch and generate the
patch from there.
generally you should apply patch with patch command, but I am not sure what
are you trying to achieve here.


> I have tried git am and git mail-info, but i am not sure if I am using
> the correct command.
>
> Can you please let me know the correct command ?
>
> --
> Thanks & Regards
> ~/asd
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: what is the difference between the two command?

2013-01-21 Thread Anuz Pratap Singh Tomar
On Mon, Jan 21, 2013 at 1:01 AM, horseriver  wrote:

> On Sun, Jan 20, 2013 at 09:07:15AM -0800, Ian Lance Taylor wrote:
> > On Sat, Jan 19, 2013 at 1:30 PM, horseriver 
> wrote:
> > > On Sat, Jan 19, 2013 at 09:47:53PM -0800, Ian Lance Taylor wrote:
> > >> On Fri, Jan 18, 2013 at 10:19 PM, horseriver 
> wrote:
> > >> > hi:
> > >> >
> > >> >Here are two command for producting one .so file :
> > >> >
> > >> >1. gcc  -nostdlib -Wl,-T,vsyscall.lds vsyscall-int80.o -o
> vsyscall-int80.so
> > >> >
> > >> >2. ld  -T vsyscall.lds vsyscall-int80.o -o vsyscall-int80.so
> > >>
> > >> There is no substantive difference between these commands.  There are
> > >> various minor differences that probably don't matter.  Use the -v
> > >> option when invoking gcc to see precisely how it invokes the linker.
> > >>
> > >> In particular, invoking the linker via the gcc driver will cause some
> > >> C++-specific operations to occur when needed, but since you aren't
> > >> using C++ in this case they won't happen.
> > >
> > > Thanks!
> > >
> > >I have a weird problem here!
> > >
> > >When I type the 1  to make vsyscall-int80.so ,ld report error: Not
> enough room for program headers, try linking with -N
> > >
> > >But,When I type 2  to make vsyscall-int80.so,it works successfully.
> > >
> > > What is the reason?
> >
> > I don't know.  Run the complete gcc command with the -v option and you
> > will see precisely how it invokes the linker.
>
>gcc -v
> Using built-in specs.
> Target: i486-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8'
> --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> --program-suffix=-4.4 --enable-shared --enable-multiarch
> --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix
> --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
> --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
> --enable-targets=all --with-arch-32=i586 --with-tune=generic
> --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
> --target=i486-linux-gnu
> Thread model: posix
>
> which option make the two commands different?
>
I think that question is more suitable for gcc or ld mailing lists.


>
> Thanks!
>
> >
> > Ian
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Kernel documentation

2013-01-16 Thread Anuz Pratap Singh Tomar
On Wed, Jan 16, 2013 at 4:35 PM, shubham  wrote:

> Hi All,
>
> I want to know if we have some documentation of kernel which
> specifically shows function calls in kernel code (It might be in the
> form of flow charts).
>
> I think we can use tools like doxygen.
> Is there any work going on this ?
>
> This may be bit outdated
http://www.makelinux.net/kernel_map/

> Regards
> Shubham
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: what is the function of do_softirq() ?

2013-01-16 Thread Anuz Pratap Singh Tomar
On Tue, Jan 15, 2013 at 6:31 AM, horseriver  wrote:

> hi:
>
>what is the function of do_softirq()?
>
>It is called by ksoftirqd() ,which is setup by :
>  kernel_thread(ksoftirqd, hcpu, CLONE_KERNEL) ;
>
>
> Please read "Understanding the Linux Kernel" Chapter on Interrupts and
Section on Softirqs and tasklets.  Page number 171(might be different in
other editions) onwards.


thanks!
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


  1   2   >