1 Reply
      Latest reply on Oct 7, 2016 12:47 AM by eskimo
      james119 Level 1 Level 1 (0 points)

        I'm trying to unmount and eject a disk from an IOSCSIPeripheralDeviceType00 Kext I'm developing.  Can anyone recommend the way to do this?  From a userspace program I can use DiskArbitration.h functions to get the job done, but in the Kext code I've been unable to include and use these functions in my Kext.




        • Re: Unmount a disk from an iokit Kext?
          eskimo Apple Staff Apple Staff (13,895 points)

          The unmount process is ultimately completed in the kernel but it must be managed by user space.  You won’t be able to unmount directly from a KEXT.  You will have to bounce out to user space code to do this.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"