Re: opening files in the kernel
Re: opening files in the kernel
- Subject: Re: opening files in the kernel
- From: Justin Walker <email@hidden>
- Date: Wed, 3 Nov 2004 19:21:02 -0800
On Nov 3, 2004, at 19:17, Roger Seagle wrote:
I am new to the process of kernel hacking and am working on a
networking stack. But with that aside, I am wondering what is the
best way to open files inside the kernel and read the contents. I
started going down the route of using VOP functions, but I don't know
if this is the right avenue. If someone could point me to some code
or documentation on this subject, I would greatly appreciate it.
There is no approved way of doing this. VOP functions are definitely
the wrong way to go (too low level), and most 'user mode' kernel
functions are set up to assume that the request comes from user mode.
There is probably a better way to do what you want.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | It's not whether you win or
lose...
| It's whether *I* win or lose.
*--------------------------------------*-------------------------------*
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden