Re: reading a file in the kernel
Re: reading a file in the kernel
- Subject: Re: reading a file in the kernel
- From: Michael George <email@hidden>
- Date: Thu, 12 Dec 2002 16:06:14 -0500
On Wednesday, December 11, 2002, at 03:48 PM, Jim Magee wrote:
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.
This is what I was thinking of doing as a fallback. However, using
"IOConnectMethod*()" I can pass scalars and structures. However, the
data I want to pass in will be of arbitrary length, so I can't define
that length in the getTargetAndMethodForIndex() data table.
I thought there was a way to pass buffers of dynamic length, but I
can't find it now...
-Michael
_______________________________________________
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.