• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Retrieving information about loaded kernel extensions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieving information about loaded kernel extensions


  • Subject: Re: Retrieving information about loaded kernel extensions
  • From: nithesh salian <email@hidden>
  • Date: Fri, 1 Oct 2010 19:37:47 +0530

This is the latest i tried. No luck :(


#include<CoreFoundation/CoreFoundation.h>
#include<IOKit/IOKitLib.h>

void main()
{

        CFBundleRef myBundle;
        // Look for a bundle using its identifier
        requestedBundle = CFBundleGetBundleWithIdentifier(
        CFSTR("com.x86dev.driver.lspcidrv") );
        assert(myBundle != NULL);    //failed here

        CFDictionaryRef bundleInfoDict;
        CFStringRef myPropertyString = NULL;
        // Get an instance of the non-localized keys.
        bundleInfoDict = CFBundleGetInfoDictionary( myBundle );
        // If we succeeded, look for our property.
        if ( bundleInfoDict != NULL ) {
                myPropertyString = CFDictionaryGetValue( bundleInfoDict,
                        CFSTR("CFBundleIdentifier"));
                printf("myPropertyString: %s\n",CFStringGetCStringPtr(myPropertyString, kCFStringEncodingMacRoman));
        }
        CFRelease( bundleURL );
        // Release the bundle when done.
        CFRelease( myBundle );

On Fri, Oct 1, 2010 at 7:09 PM, nithesh salian <email@hidden> wrote:
Kexstat is command line tool for accessing the loaded module info.

 However, I have to access the information inside a user level application. How can i do that? Are there any interfaces supported in Snow leopard.

  kmod_get_info also doesnt work on Snow Leopard. Kindly help. 



On Wed, Sep 29, 2010 at 6:54 PM, Alexander von Below <email@hidden> wrote:
kextstat 8

I would just pipe and parse that. That way you are completely independent of the system you are running on.

For more details, look in  http://opensource.apple.com/source/IOKitUser/IOKitUser-502.0.3/kext.subproj/OSKext.c

As an aside: A lot of people read darwin-dev AND darwin-drivers. Please do NOT crosspost

Alex


Am 29.09.2010 um 15:14 schrieb nithesh salian:

> Hi,
>
> Can someone please let me know the APIs to retrieve the information about loaded kernel extensions like module name, version etc in Snow Leopard?
>
> Regards,
> Nithesh Gangadhar Salian
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-drivers mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden




--
Regards,
Nithesh Gangadhar Salian




--
Regards,
Nithesh Gangadhar Salian

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Retrieving information about loaded kernel extensions (From: nithesh salian <email@hidden>)

  • Prev by Date: Re: Retrieving information about loaded kernel extensions
  • Next by Date: Re: Retrieving information about loaded kernel extensions
  • Previous by thread: Re: Retrieving information about loaded kernel extensions
  • Next by thread: Re: Retrieving information about loaded kernel extensions
  • Index(es):
    • Date
    • Thread