Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hooking mount events from within kernel.



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

This email sent to email@hidden
References: 
 >Hooking mount events from within kernel. (From: "Maxim Zhuravlev" <email@hidden>)
 >Re: Hooking mount events from within kernel. (From: "Maxim Zhuravlev" <email@hidden>)
 >Re: Hooking mount events from within kernel. (From: Terry Lambert <email@hidden>)
 >Re: Hooking mount events from within kernel. (From: "Maxim Zhuravlev" <email@hidden>)
 >Re: Hooking mount events from within kernel. (From: Terry Lambert <email@hidden>)
 >Re: Hooking mount events from within kernel. (From: "Maxim Zhuravlev" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.