Library (ab)use in kernel land
Mike Bristow
mike at urgle.com
Tue Aug 31 06:44:57 PDT 2004
On Sat, Aug 28, 2004 at 01:40:50PM -0700, Brian O'Shea wrote:
> That being said, there are a few analogs of the standard C
> library functions in the kernel, such as printf, strcpy, bcmp,
> qsort, etc. You can find sources for them in src/sys/libkern/
> with prototypes in the src/sys/sys/libkern.h and src/sys/sys/systm.h
> header files.
And manual pages in section 9 of the manual, eg:
$ man 9 printf
will give you the docs for the printf that you can call in kernelspace.
More information about the freebsd-hackers
mailing list