Dear all,
Is there any documentation of the recent changes of the vm in the linux
kernel? Also, is there any source of documentation to get start with the
linux kernel hacking? It is hard for people to getting start to
contribute since is is obviously lack of documentation of the kernel
sources... Any help will be appreciated. Thanks.
regards,
DC
On Fri, 2001-11-02 at 01:53, David Chow wrote:
> Is there any documentation of the recent changes of the vm in the linux
> kernel? Also, is there any source of documentation to get start with the
> linux kernel hacking? It is hard for people to getting start to
> contribute since is is obviously lack of documentation of the kernel
> sources... Any help will be appreciated. Thanks.
See http://kernelnewbies.org for some introduction to kernel hacking...
The books "Understanding the Linux Kernel" and "Linux Device Drivers",
both published by O'Reilly, are good starts.
As for the VM, there doesn't seem to be _anything_ yet. Hopefully soon?
Robert Love
Is there any resources(such as programming guide or referrence book) for the C language grammar in gcc, especially for Kernel? Such as what is _init, 1<<12, asmlinkage, etc?
Thanks
Noah
-----Original Message-----
From: Robert Love [mailto:[email protected]]
Sent: 2001?11?2? 15:23
To: David Chow
Cc: [email protected]
Subject: Re: vm documentation
On Fri, 2001-11-02 at 01:53, David Chow wrote:
> Is there any documentation of the recent changes of the vm in the linux
> kernel? Also, is there any source of documentation to get start with the
> linux kernel hacking? It is hard for people to getting start to
> contribute since is is obviously lack of documentation of the kernel
> sources... Any help will be appreciated. Thanks.
See http://kernelnewbies.org for some introduction to kernel hacking...
The books "Understanding the Linux Kernel" and "Linux Device Drivers",
both published by O'Reilly, are good starts.
As for the VM, there doesn't seem to be _anything_ yet. Hopefully soon?
Robert Love
On Friday November 2, [email protected] wrote:
> Dear all,
>
> Is there any documentation of the recent changes of the vm in the linux
> kernel? Also, is there any source of documentation to get start with the
> linux kernel hacking? It is hard for people to getting start to
> contribute since is is obviously lack of documentation of the kernel
> sources... Any help will be appreciated. Thanks.
>
I would very seriously suggest that a good way to get started is to
write some documentation yourself.
Pick a piece of the kernel that interests you and start reading
through the code. Then try to describe how it works in writing. If
there is some bit that really stumps you,. then ask on some
appropriate mailing list (such as this one). Try to put together a
reasonably coherent document that describes how that bit of the kernel
works. Once you have done that:
a/ you will know how it works
b/ you will have been exposed to lots of kernel code and have some
idea of the 'typical' way to do things
c/ you will probably have identified a number of incongurities or
errors for which you can submit patches.
d/ you will have created some documentation that is useful for
others.
e/ you will have lots of ideas about what to do next.
There is no easy way to just "start contributing". You need to put a
lot of work in before your contributions will really be valuable.
Reading code is a great way to start, and documenting it makes sure
that you read it properly.
It's how I started.
NeilBrown
"Yan, Noah" wrote:
>
> Is there any resources(such as programming guide or referrence book) for the C language grammar in gcc, especially for Kernel? Such as what is _init, 1<<12, asmlinkage, etc?
>
>
> From: Robert Love [mailto:[email protected]]
>
> See http://kernelnewbies.org for some introduction to kernel hacking...
Noah,
Lots of your questions are appropriate for kernelnewbies.org .
__init (with 2 underscores) is defined in the header file
linux/include/linux/init.h
It marks a code (text) segment as being discardable after boot/init
for code that is not in a module (i.e., it is compiled into the
kernel boot image).
"1<<12" is C. Take the value 1, shift it left 12 times (bits),
giving 0x1000.
~Randy