On Fri, 14 Nov 2003, Mike Vannorsdel wrote:
You'll have to use the VFS functions (vn_open, vn_rdwr, vn_close, ect).
This also requires a good grasp on vnodes, vnode reference counting,
and vnode locking. You'll find doing file I/O from within the kernel
is very different, and more difficult, than from userland.
Your best bet is to find a book or online tutorials on using VFS.
The proper way to do this is to communicate with a user land daemon to do the file writing ala syslog. You might even be able to configure syslog to write your messages into a differnent file. But Apple's recommended way is to have something in userland do your file IO and use IOKit messages/communication if in the IOKit, use sockets if in a file system (which requires you to switch from BSD to network funnel to do I believe), etc. Quinn will have good insight into this. :) --- Marek Kozubal marek@portents.com _______________________________________________ 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)
-
Marek Kozubal