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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=/XAHKIY7yxSu3J5VYWOwld9Fn2QZxxp3MMNdNvPWghU=; b=dfh01PPw9SPX2CIxlFQMOfJsQqmQ4H+PnkOGlY2SP9q8TR9J6dX4uZ3hVSipTv/pG7u4Wm1a5qV+IFG7uR6Ep2Sb58/s1zNFf1onPUcaDnajp3Q5OSuuSCEwctOWN+ESf3YmWP/O4isozmRBOkFDsyzyPn7Su5YhdjE/rLATReM= 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=c5q0MfvjbNeTqPL/jy4sdY/NI/64L4dwss3b7z/mZqXrH/Ti55rPzpuUnueXib/BY6mUGAPVkl4uf0IxIiog6uUFR8BMs3sApFfX3utWMhCDUIujVrjlwRpuFatZIjcSnxoITg6aTnfpjBiGXPTHDHB5kLKjCu+fNxhL5EeEmJ0= Err... why? What's the root problem that you are trying to solve? On 27/12/2007, 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/bogvardi%40gmail.com
This email sent to bogvardi@gmail.com
_______________________________________________ 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)
-
Herb Petschauer