link question

Greg KH greg at kroah.com
Wed Jun 29 14:40:40 EDT 2011


On Wed, Jun 29, 2011 at 11:36:30AM -0600, Littlefield, Tyler wrote:
> I have a quick question; this is something I haven't been able to figure 
> out. By using the kernel headers you can call functions that are defined 
> in the kernel,

>From userspace?  No you can't.  You need to use glibc or something else.

The kernel is not a library, the only way to interact with it from
userspace is by making system calls.  You can use glibc or some libc to
make those system calls for you through other functions, or you can call
them "raw" if you really know what you are doing.

Hope this helps,

greg k-h



More information about the Kernelnewbies mailing list