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: Michael Smith <email@hidden>
- Date: Thu, 27 Dec 2007 11:06:43 -0800
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.
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
_______________________________________________
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