Re: Hooking mount events from within kernel.
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=clMLcdtnPU2LqbNZi7KISvh8QNdvioKLsNquJJB628E=; b=sAwFTF/dkvqyYoV0eiF8z2FXUMKligDGiv6yApXxGezO28Cyhs/e8JZzYskdWIzGEC 8CTz+sUkuIlRe7jJrkaMMOrOG9LWoDevZngYDSJd662/szLWhBaQ0upqr1dk/OVA3Rsm XC/KumRu63XK5zKh0kUmPnoApfhEwMCGlloz8= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qKgXGTWeNflpC21Q1FggiqqH+znUQggkFdSMSxwthxuUIEXEd0ESHeJ87Ufg3/tZPZ 64n+ikt7r7VG5n5yBAl5cGEjiWVR+1OE2qX+JHsynsoMDk0MHDNqKpJdMvRc6+mxXG5G EC7okyDjdTubfHIBViO7Lz8rVB2i+0iKZ04xM=
What do you mean by "hook" here?
I mean, I need to get notified on every mount/umount event. I.e. I need, say, some kauth semantics for mount/umount.
What problem you are actually trying to solve that you think hooking mounts and unmounts will solve for you?
I need to do some initialization in my kext for newly coming filesystem on mount and some invalidation for umonted filesystem based on it's device id ( in terms of stat() ) or fsid (in terms of vnodes). _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Maxim Zhuravlev