Writing to a file

Joseph Koshy joseph.koshy at gmail.com
Sun May 6 09:53:29 UTC 2007


> So, could anyone please give me a detailed
> explanation of how to open a file in kernel and write to it - best data
> types to use, functions, what to look out for, maybe a link to tutorial
> or manual that deals with this (if such a thing exists), etc.?

I'm not aware of such a tutorial.  I would suggest that you start with the
source for alq_open() in "/sys/kern/kern_alq.c", looking up the manual
pages for all the functions it calls as needed.

-- 
FreeBSD Volunteer,     http://people.freebsd.org/~jkoshy


More information about the freebsd-hackers mailing list