Hi, My name is Prudhvee and I'm purusing my undergraduate second year. I'm intrested in kernel development but I'm unable to understand how to get into it. Can you please help me to become a kernel developer. I just want to know what I should learn and any suggested books to learn kernel programming. Thank you, Prudhvee.
check out eudyptula challenge On 11 June 2014 11:58, Prudhvee Narasimha Sadha <prudhvi.sada@gmail.com> wrote:
Hi, My name is Prudhvee and I'm purusing my undergraduate second year. I'm intrested in kernel development but I'm unable to understand how to get into it. Can you please help me to become a kernel developer.
I just want to know what I should learn and any suggested books to learn kernel programming.
Thank you, Prudhvee.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Thanks & Regards ~/Asutosh Das
On Wed, Jun 11, 2014 at 11:58 AM, Prudhvee Narasimha Sadha <prudhvi.sada@gmail.com> wrote:
Hi, My name is Prudhvee and I'm purusing my undergraduate second year. I'm intrested in kernel development but I'm unable to understand how to get into it. Can you please help me to become a kernel developer.
I would suggest get the foundations right first and let's hope you know good C, tricks are good to know but you should be able to understand code written by others and be able to integrate the knowledge with what you already know. If you haven't used semaphores or mutexes in user space code then do that first, understand why is the need. For example why you need to have a sycall to get a semaphore but when working with pthreads you probably don't need that. Understand compiler and make it your friend. Errors you get while compiling, and things you can do for example why ((struct mystruct*)(0))->member fails when you run code but &(((struct mystruct*)(0))->member) works. Basic idea is to get to understand how would you do it yourself, get some ideas in your mind see if they should work or not. You may be able to write code maybe without going through all that but in the long run it would help.
I just want to know what I should learn and any suggested books to learn kernel programming.
Take an operating system course first. Get to know the basics then you can try to understand kernel code. You can start with LDD, i think a new version is available now, but take an OS course in parallel or read yourself.
Thank you, Prudhvee.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- ---P.K.S
On Wed, Jun 11, 2014 at 12:35 PM, Pranay Srivastava <pranjas@gmail.com> wrote: > On Wed, Jun 11, 2014 at 11:58 AM, Prudhvee Narasimha Sadha > <prudhvi.sada@gmail.com> wrote: > > Hi, > > My name is Prudhvee and I'm purusing my undergraduate second year. > I'm > > intrested in kernel development but I'm unable to understand how to get > into > > it. > > Can you please help me to become a kernel developer. > > I would suggest get the foundations right first and let's hope you know > good C, > tricks are good to know but you should be able to understand code > written by others and be able to integrate the knowledge with what you > already know. > > Agree. Ways to do this : - 1. Read/write/understand K&R C language. 2. To understand code written by others you have to start doing that. (I mean practice it). > If you haven't used semaphores or mutexes in user space code then do > that first, understand why is the need. For example why you need to > have a sycall to get a semaphore > but when working with pthreads you probably don't need that. > > Understand compiler and make it your friend. Errors you get while > compiling, and things you can do for example why ((struct > mystruct*)(0))->member fails when you run code but &(((struct > mystruct*)(0))->member) works. > > > > Basic idea is to get to understand how would you do it yourself, get > some ideas in your mind see if they should work or not. You may be > able to write code maybe without going through all that but in the > long run it would help. > > > > > I just want to know what I should learn and any suggested books to > > learn kernel programming. > > > > Take an operating system course first. Get to know the basics then you > can try to understand kernel code. You can start with LDD, i think a > new version is available now, but take an OS course in parallel or > read yourself. > Agree. Ways to do this : - Get an OS course done, search for courses online, 2 of ones which I know are : - 1. http://www.cs.cmu.edu/~213/ 2. CMUs OS course. > > > Thank you, > > Prudhvee. > > > > _______________________________________________ > > Kernelnewbies mailing list > > Kernelnewbies@kernelnewbies.org > > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > > > > > -- > ---P.K.S > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > - Rohan
Hello Prudhvee, I would suggest first start with Kernel Basic and O.S Concept to understand where Kernel really fits in O.;S and then gradually speed up to learn How Kernel works by referring interesting books like Kernel Development by Robert Love and also have source code handy to map the Kernel source code with Book to understand the functionality.I Bet you that once you done with Kernel Development by Robert Love then you can start working in community and then will let you know next step. Regards Sanjeev Sharma On Wed, Jun 11, 2014 at 12:51 PM, Rohan Puri <rohan.puri15@gmail.com> wrote: > > > > On Wed, Jun 11, 2014 at 12:35 PM, Pranay Srivastava <pranjas@gmail.com> > wrote: > >> On Wed, Jun 11, 2014 at 11:58 AM, Prudhvee Narasimha Sadha >> <prudhvi.sada@gmail.com> wrote: >> > Hi, >> > My name is Prudhvee and I'm purusing my undergraduate second >> year. I'm >> > intrested in kernel development but I'm unable to understand how to get >> into >> > it. >> > Can you please help me to become a kernel developer. >> >> I would suggest get the foundations right first and let's hope you know >> good C, >> tricks are good to know but you should be able to understand code >> written by others and be able to integrate the knowledge with what you >> already know. >> >> Agree. Ways to do this : - > 1. Read/write/understand K&R C language. > 2. To understand code written by others you have to start doing that. (I > mean practice it). > > >> If you haven't used semaphores or mutexes in user space code then do >> that first, understand why is the need. For example why you need to >> have a sycall to get a semaphore >> but when working with pthreads you probably don't need that. >> >> Understand compiler and make it your friend. Errors you get while >> compiling, and things you can do for example why ((struct >> mystruct*)(0))->member fails when you run code but &(((struct >> mystruct*)(0))->member) works. >> >> > >> >> Basic idea is to get to understand how would you do it yourself, get >> some ideas in your mind see if they should work or not. You may be >> able to write code maybe without going through all that but in the >> long run it would help. >> >> > >> > I just want to know what I should learn and any suggested books to >> > learn kernel programming. >> > >> >> Take an operating system course first. Get to know the basics then you >> can try to understand kernel code. You can start with LDD, i think a >> new version is available now, but take an OS course in parallel or >> read yourself. >> > Agree. Ways to do this : - > Get an OS course done, search for courses online, 2 of ones which I know > are : - > 1. http://www.cs.cmu.edu/~213/ > 2. CMUs OS course. > >> >> > Thank you, >> > Prudhvee. >> > >> > _______________________________________________ >> > Kernelnewbies mailing list >> > Kernelnewbies@kernelnewbies.org >> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >> > >> >> >> >> -- >> ---P.K.S >> >> _______________________________________________ >> Kernelnewbies mailing list >> Kernelnewbies@kernelnewbies.org >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies >> > > - Rohan > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > >
While on the subject of books, is Understanding the Linux Kernel - 3rd edition worth reading (it covers 2.6)? On 06/11/2014 02:28 AM, Prudhvee Narasimha Sadha wrote:
Hi, My name is Prudhvee and I'm purusing my undergraduate second year. I'm intrested in kernel development but I'm unable to understand how to get into it. Can you please help me to become a kernel developer.
I just want to know what I should learn and any suggested books to learn kernel programming.
Thank you, Prudhvee.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Jun 11, 2014 7:19 PM, "Ben" <ben@cock.li> wrote:
While on the subject of books, is Understanding the Linux Kernel - 3rd
edition worth reading (it covers 2.6)? yes. if you've hardcopy then open the code and browse through it. otherwise use two monitors. :-p. switching back n forth through windows makes me loose concentration... without reading and understand the code along with the book wont be as helpful as it can be.
On 06/11/2014 02:28 AM, Prudhvee Narasimha Sadha wrote:
Hi, My name is Prudhvee and I'm purusing my undergraduate second year.
I'm intrested in kernel development but I'm unable to understand how to get into it.
Can you please help me to become a kernel developer.
I just want to know what I should learn and any suggested books to learn kernel programming.
Thank you, Prudhvee.
_______________________________________________ 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
http://wiki.osdev.org/Tutorials http://kernelnewbies.org/ these links might help u . On Wed, Jun 11, 2014 at 8:25 PM, Pranay Srivastava <pranjas@gmail.com> wrote:
On Jun 11, 2014 7:19 PM, "Ben" <ben@cock.li> wrote:
While on the subject of books, is Understanding the Linux Kernel - 3rd
edition worth reading (it covers 2.6)?
yes. if you've hardcopy then open the code and browse through it. otherwise use two monitors. :-p.
switching back n forth through windows makes me loose concentration...
without reading and understand the code along with the book wont be as helpful as it can be.
On 06/11/2014 02:28 AM, Prudhvee Narasimha Sadha wrote:
Hi, My name is Prudhvee and I'm purusing my undergraduate second
year. I'm intrested in kernel development but I'm unable to understand how to get into it.
Can you please help me to become a kernel developer.
I just want to know what I should learn and any suggested books to learn kernel programming.
Thank you, Prudhvee.
_______________________________________________ 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
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- *Saurabh Jain * *B.Tech Student* *Computer Science & Engineering * *Malaviaya National Institute of Technology , Jaipur* *"* *To the question of your life you are the answer, and to the problems of your life you are the solution.” *
On Wed, 11 Jun 2014 11:58:02 +0530, Prudhvee Narasimha Sadha said:
I just want to know what I should learn and any suggested books to learn kernel programming.
Learn C. Learn C *really* well. Especially the way the Linux kernel implements object-oriented concepts using callbacks through structures of function pointers (struct file_ops, etc...) Learn about race conditions and locking. Come to grips with the fact that the Linux kernel of 2014 isn't the kernel from 2004 - most of the code has already been looked over by lots of professional programmers, and a lot of the low-hanging fruit has been cleared out already. So be prepared to accept that these days, not everybody can be a productive kernel hacker. However, Greg KH is *always* willing to accept any coding love you want to give to anything in drivers/staging :) Two very helpful book, even though they are *not* about Linux: Maurice Bach - The Design of the Unix Operating System McKusick - The Design and Implementation of the FreeBSD Operating System Why? It's useful to understand different solutions for how to represent things like processes, files, and devices. And both books are an excellent way to learn about locking in the context of OS design, as they spend a *lot* of time on "We need to lock this data structure from this point in time until this other thing finishes, because otherwise something else could run here and do this other perfectly reasonable thing at just the wrong time, which would unfortunately end up turning your entire filesystem into a steaming pile of dingo kidneys because such-and-such will get trashed..." And if you're bored, Elliot Organick's "The Multics System: An Examination of its Structure" (ISBN 0-262-15012-3) has insights to be understood, 40 years after it came out....
On Wed, 11 Jun 2014, Valdis.Kletnieks@vt.edu wrote:
On Wed, 11 Jun 2014 11:58:02 +0530, Prudhvee Narasimha Sadha said:
I just want to know what I should learn and any suggested books to learn kernel programming.
Learn C. Learn C *really* well. Especially the way the Linux kernel implements object-oriented concepts using callbacks through structures of function pointers (struct file_ops, etc...)
particularly gcc extensions that are used extensively in the kernel: https://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================
participants (9)
-
Asutosh Das -
Ben -
Pranay Srivastava -
Prudhvee Narasimha Sadha -
Robert P. J. Day -
Rohan Puri -
sanjeev sharma -
Saurabh Jain -
Valdis.Kletnieks@vt.edu