Re: reading a file in the kernel
Re: reading a file in the kernel
- Subject: Re: reading a file in the kernel
- From: Jim Magee <email@hidden>
- Date: Wed, 11 Dec 2002 15:48:54 -0500
If you go to this length, just pass the file contents in, rather than
the file descriptor number. Trying to convert from a filedescriptor
number to real file data from within a KEXT will require you to access
all sorts of kernel-private data structures which are not guaranteed
against release-to-release changes.
On Wednesday, December 11, 2002, at 02:39 PM, Jeffrey D. Chung wrote:
If you must absolutely read a file from the kernel... the easiest
thing to
do is to have a userland application open the file and pass the file
descriptor into the kernel... Then use the regular kernel reads and
writes.
I believe the vn driver is a good place to copy code from.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.