Re: Hooking mount events from within kernel.
Re: Hooking mount events from within kernel.
- Subject: Re: Hooking mount events from within kernel.
- From: Quinn <email@hidden>
- Date: Tue, 26 Aug 2008 11:51:02 +0100
At 13:50 +0400 26/8/08, Maxim Zhuravlev wrote:
I would appreciate, if you give me a hint, how do I do it from
within kernel, i.e. *observe* mount/umount events, if there is any
way. That would fit my needs perfectly.
AFAICT there's no reasonable way to do this. Options that don't fit
my definition of reasonable include:
o polling the results of vfs_iterate
o hacking on the kernel (that is, using non-KPIs)
Outside the kernel you probably want to use the
<x-man-page://3/notify> API rather than DiskArb because it's
significantly lower level. Check out kNotifyVFSMount and
kNotifyVFSUnmount in <notify_keys.h>.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden