The proper way to open a file from inside the kernel
Joseph Koshy
joseph.koshy at gmail.com
Thu Aug 24 03:56:50 UTC 2006
> I am experimenting with modifying a kernel module and I need
> to be able to open/read/write/close a file from within the
> module. Is there a preferred way to do this? Are there any
> locking or buffering issues that I need to be aware of?
sys/kern/kern_alq.c:alq_open() and sys/kern/kern_ktrace.c:ktrace()
have examples.
--
FreeBSD Volunteer, http://people.freebsd.org/~jkoshy
More information about the freebsd-hackers
mailing list