Re: Determining which kernel extension is being opened
Re: Determining which kernel extension is being opened
- Subject: Re: Determining which kernel extension is being opened
- From: "Herb Petschauer" <email@hidden>
- Date: Thu, 27 Dec 2007 09:36:44 -0800
Err... why? What's the root problem that you are trying to solve?
On 27/12/2007, David Rose <email@hidden> wrote:
> Hi,
>
> Is there any way to associate a filename to an
> IOServiceOpen call? Is there a way to tell which
> kernel extension (kext) an IOServiceOpen will
> open.
>
> Consider the following code:
>
> kernResult = IOServiceGetMatchingServices(
> kIOMasterPortDefault, IOServiceMatching( "Foo" ),
> &iterator );
>
> if( kernResult == kIOReturnSuccess )
> {
> service = IOIteratorNext( iterator );
> IOObjectRelease( iterator );
>
> if( service )
> {
> kernResult = IOServiceOpen( service,
> mach_task_self(), 0, &dataPort );
>
> Is there any way to determine the kernel extension
> that will have its newUserClient method invoked based
> on the above code? Right now I can grep through plists
> in /System/Library/Extensions and search for Foo but
> is there any better way?
>
> Thanks,
>
> David Rose
>
>
>
> ____________________________________________________________________________________
> Never miss a thing. Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>
> _______________________________________________
> 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
>
_______________________________________________
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