Re: The proper way to open a file from inside the kernel

2006-08-24 Thread Kim Shrier
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

Re: The proper way to open a file from inside the kernel

2006-08-23 Thread Joseph Koshy
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:k