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:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden