Re: Determining which kernel extension is being opened
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=zjrxfNMvVv84A6ykjYhf7GbmK+kGz4N5wVCLwQaBkPpA87kqULlE2hDrycPFhgRdhgTI+1bvC2qBJ7ryzCjtPWueHHtSYwnnNhXzPsFBGRvDAGmThcxGCjAJbvKCXlxPM7kysvwlSFlbAPkFPAfThREYICmER4chIN0oFTmmKh0=;
On Dec 27, 2007, at 9:32 AM, David Rose wrote:
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.
If you mean "which bundle contains the file which in turn contains the code implementing the class which publishes a given service"? then the answer is no.
In fact, you have no guarantee that there is an answer to the question that you are asking.
In the common case, you can scan the Info.plist files in /S/L/E and look for one that mentions a class with the same name in one of its personalities, but there is no guarantee that you'll find it, and even then all you know is that you're looking at a file that contains *an* implementation of a class that has the same name as the one you're interested in; there's no guarantee that it's the one that you're currently matched to, or that there is only one of them.
OK, thanks. This answers my question.
As Herb asks, what are you actually trying to do? I can't think of anything you could do with the answer to your question that doesn't require a number of other assumptions.
= Mike
I was trying to replace one of Apple's open source drivers with a modified version and noticed none of my changes were being executed. I came to the conclusion that my driver was not running and the original Apple driver was still running. Anyways, sorry for the noise. David Rose ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping _______________________________________________ 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)
-
David Rose