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.
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.
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"