Re: Kernel Extensions
Re: Kernel Extensions
- Subject: Re: Kernel Extensions
- From: George Andre <email@hidden>
- Date: Sat, 15 Nov 2003 02:21:13 +0100
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.
Just a word of warning...
Even though VN ops function will work, Apple is discouraging such an
endeavour,
since it will rely on the kernel exporting these specific symbols. As
far as I know
(someone from Apple might want to correct me if I'm wrong) relying on
kernel symbols
presence at kext link is a no-no. Plus, if I remember it correctly, to
make it work a
funnel change must be done; plus a possible break of synchronization.
Having said that, the specific kernel symbols we are talking about have
99.9% chance/risk
of not being removed/changed... so it's your choice.
George.
On Nov 13, 2003, at 12:34 PM, Matt Jaffa wrote:
In a Kernel Extension,
I am trying to do file reading and writing,
how do i go about this,
I included fstream but I dont think that this is supported.
Any suggestions?
_______________________________________________
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.
_______________________________________________
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.