I am working in the context of a I/O Kit Driver. I am getting access to these file operations through the Kernel.Framework (to include vnode.h, namei.h, uio.h, ect..), which from what I can tell is running from the BSD portions of the kernel (I'm not really sure how correct I am about that). ----- Original Message ----- From: "Quinn" <eskimo1@apple.com> To: <darwin-kernel@lists.apple.com> Sent: Wednesday, April 09, 2003 9:44 AM Subject: Re: File Access with VFS
At 7:36 -0700 9/4/03, Scott Lance wrote:
I am trying to open a file for manipulation in Kernel mode. After
several
hours of searching, limited documentation seems to suggest that I would
be
able to use a VNode to accomplish my objective. I have tried to find
documentation on how this works and what I must do to be able to get a
handle
to a file and open it up for manipulation. Does anyone have any
suggestions
on where I can look for information on how vnodes and the VFS work? Or
perhaps someone could enlighten me on what I must do to be able to open a
file
for use??? Or might there be a different way to open a file in Kernel
mode
that I've missed all together?
There isn't a single "kernel mode" on Mac OS X. The answer differs
depending on whether you're running within BSD portions of the kernel
(indeed, what part of BSD), within an I/O Kit driver, and so on.
What context is your code executing in?
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
darwin-kernel mailing list | darwin-kernel@lists.apple.com
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Scott Lance