1 Reply
      Latest reply: Oct 7, 2016 12:47 AM by eskimo RSS
      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.

         

        Thanks!

        Jim

        • Re: Unmount a disk from an iokit Kext?
          eskimo Apple Staff Apple Staff (7,845 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"