Re: Determining which kernel extension is being opened
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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+AgP2JQ36Z6n0AFzbiZGS6yHdToh6U5fqC4A0e8GmOM=; b=UKqISJovMhHMozJu6EP83GayfQ3yja33bM1J60hPZDa63j+0i52iYiCfS95ovN/4Uzs4Vags0g8KqaOTuc6z8ssXMs7UoRpAk93rx7uwyUfwn8XFDbrPbn2CBLaHSb77Hy2SS3ChqmjmfKgjWQf5yRHzoSYYUA1JTJ9m9vHDTi4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IOimryEhjEzzUdVJ8LPwuS88LF8P9cxB0Q2hXPQwVrwWZqho6JMuXpRzJfYyFWE+/mfZvPczHS+/4jeRDOQ4DVwvEv9IEXMAoVFmp/EMR9dYCLP2DO+lKoSns8EnmuK7a8ZJEx0Dy4PAXGVzqc1HjWXhlQgXo6ooOoY0nZJ8jao= Hi, take a look here if you need to know the list of kext loaded http://plumber.gnu-darwin.org/home/pub/snip-c/lsmod-101/lsmod.c and you could match your service by identifier from the user space, and maybe you could match the filename by using CFBundleGetBundleWithIdentifier, i don't know if you can match a kext like this, Cf is abble to return loaded bundles On Dec 27, 2007 6:32 PM, David Rose <david.rose43@yahoo.com> 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/openspecies%40gmail.com
This email sent to openspecies@gmail.com
-- -mmw _______________________________________________ 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)
-
mm w