Linux Kernel Manual Web pages

Izvor: KiWi

Skoči na: orijentacija, traži

Owning the opportunity to lookup how a kernel functionality will work is rather helpful when crafting your individual unit driver or any kernel module. Sadly you can't just apt-get install kernel-manpages. Nicely would not that be great! For getting your kernel guide internet pages for a distinct kernel you are able to download the kernel resource and execute a number of option commands. Here is a small tutorial less than Debian (and would most likely work for many Linux distributions).

Down load your kernel model, in this case I grabbed version two.six.32.3
Untar the the doc by: tar -xvf linux-2.6.32.3.tar.bz2
Now transfer to the new linux-2.six.32.three directory and kind make mandocs. The procedure could possibly prompt you to definitely down load lacking packages to make the manuals, progress to perform so.
Right after the paperwork happen to be designed type make installmandocs, this tends to install the manual pages into /usr/local/man/man9/. Using this method now you can form guy copy_to_user to check out ways to utilize the specified kernel function!

So, performing a person copy_to_user you might now receive the output of:

Identify
copy_to_user - Copy a block of data into consumer house.

SYNOPSIS
unsigned extensive copy_to_user (void __user * to, const void * from, unsigned prolonged n);

ARGUMENTS

to

Vacation spot deal with, in consumer place.

from

Supply deal with, in kernel place.

n

Quantity of bytes to repeat.

CONTEXT
User context only. This function could rest.

DESCRIPTION
Copy details from kernel area to person house.

Returns amount of bytes which could not be copied. On results, this could be zero.

Erik is really an avid Linux person and has experience with a wide array of Linux/Unix based methods. In his spare time he likes creating software program (C/C++/Perl/PHP/BASH/Python) and experimenting with distinctive Linux distributions. He's beginning to make a broad wide range of content articles Unix pushed (what a surprise) that hope to tell these just getting into Linux on his website Linux Kernel Programming.

Osobni alati