The proper way to open a file from inside the kernel
Kim Shrier
kim at tinker.com
Thu Aug 24 18:22:10 UTC 2006
On Aug 23, 2006, at 9:56 PM, Joseph Koshy wrote:
>> 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
>
Thank you.
Kim
--
Kim Shrier - principal, Shrier and Deihl - mailto:kim at tinker.com
Remote Unix Network Admin, Security, Internet Software Development
Tinker Internet Services - Superior FreeBSD-based Web Hosting
http://www.tinker.com/
More information about the freebsd-hackers
mailing list