Re: How to know given file path is part of bundle
Re: How to know given file path is part of bundle
- Subject: Re: How to know given file path is part of bundle
- From: Tim Seufert <email@hidden>
- Date: Sun, 2 Dec 2007 16:41:18 -0800
On Dec 2, 2007, at 5:44 AM, JanakiRam wrote: HI All,
I've a driver/kext which captures file events.
My requirement --> once a file path is given , i need to find-out whether its a part of bundle then i need to get the path of the bundle.
I've seen some carbon/cocoa api to address this problem but i need similar one at kernel level.
Can any provide some pointers/suggestions on achieving this functionality.
You are almost certainly attempting to do too much inside the kernel.If you're just capturing file events, you should be able to do everything outside the kernel (no kext at all) with kqueue or FSEvents.
If you must write a kext, it is probably still a good idea to push the raw path data out to userspace and perform the bundle lookup there. Userspace is where your data is going to end up anyways; there's no reason to force such lookups into the kernel if you don't have to.
As with many of these questions, you should probably give some more information about what you are trying to do in order to get better advice.
|
_______________________________________________
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