Re: Kernel Extensions
Re: Kernel Extensions
- Subject: Re: Kernel Extensions
- From: Matt Jaffa <email@hidden>
- Date: Sat, 15 Nov 2003 15:34:54 -0700
Marek Kozubal,
How do I write a user land daemon that the Kernel KEXT can actually
call, and how do I call it from within the Kernel extension?
One of the biggest questions I have is, Is there better documentation
on how to do everything? The online documentation, just teaches you how
to compile, non of the specifics on the capabilities of everything,
Is there a book out there that i can buy that will help alot?
Thanks,
Matt
On Nov 14, 2003, at 10:41 PM, Marek Kozubal wrote:
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
email@hidden
_______________________________________________
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.