Determining which kernel extension is being opened
Determining which kernel extension is being opened
- Subject: Determining which kernel extension is being opened
- From: David Rose <email@hidden>
- Date: Thu, 27 Dec 2007 09:32:57 -0800 (PST)
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