Re: Determining which kernel extension is being opened
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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. = Mike _______________________________________________ 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... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Smith