• 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: Possible to install an IOKit driver without rebooting?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible to install an IOKit driver without rebooting?


  • Subject: Re: Possible to install an IOKit driver without rebooting?
  • From: Brian Kendall <email@hidden>
  • Date: Mon, 08 Oct 2012 13:22:09 -0400

On Oct 8, 2012, at 2:56 AM, Stephane Sudre <email@hidden> wrote:

> On Mon, Oct 8, 2012 at 6:27 AM, Brian Kendall <email@hidden> wrote:
>> Hello,
>>
>> I'm working on an installer that, among other things, installs a kext for an IOKit driver.  I've got it working in an installer that requires a reboot - the kext gets installed correctly and the kext cache gets rebuilt.  However, I'm wondering if there's a way to do this without requiring a reboot.  This installer requires 10.6 or later, so I don't have to concern myself with older versions of OS X.  And if it matters, the driver doesn't actually do anything - it's a stub to prevent the default USB driver from being used.  A separate daemon handles communication with the device.
>>
>> Unfortunately, in my googling so far I haven't found a clear answer.  I've read this document: http://developer.apple.com/library/mac/#qa/qa1319/_index.html but I don't quite follow it.  Is it saying that if I'm installing an IOKit kext in 10.5 or newer, I don't have to do anything other than executing `touch /System/Library/Extensions`?
>
> And probably loading the kext with kextload from the postinstall script.

I just gave it a try, and it almost works.  After running the installer without a reboot, unplugging and plugging back in my USB device will have it load with the correct driver.  In this case it doesn't matter whether or not I call kextload.

So the question is: how can I force OS X to update which driver its using for a device without requiring the user to unplug and plug it back in manually?

- Brian


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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Possible to install an IOKit driver without rebooting?
      • From: Bill Coderre <email@hidden>
    • Re: Possible to install an IOKit driver without rebooting?
      • From: Greg Neagle <email@hidden>
References: 
 >Possible to install an IOKit driver without rebooting? (From: Brian Kendall <email@hidden>)
 >Re: Possible to install an IOKit driver without rebooting? (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Possible to install an IOKit driver without rebooting?
  • Next by Date: Re: Possible to install an IOKit driver without rebooting?
  • Previous by thread: Re: Possible to install an IOKit driver without rebooting?
  • Next by thread: Re: Possible to install an IOKit driver without rebooting?
  • Index(es):
    • Date
    • Thread