Beginner guide

Pranay Srivastava pranjas at gmail.com
Wed Jun 11 03:05:24 EDT 2014


On Wed, Jun 11, 2014 at 11:58 AM, Prudhvee Narasimha Sadha
<prudhvi.sada at 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 at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
        ---P.K.S



More information about the Kernelnewbies mailing list