DADiskCreateFromIOMedia

Function DADiskCreateFromIOMedia 

Source
pub unsafe extern "C" fn DADiskCreateFromIOMedia(
    allocator: CFAllocatorRef,
    session: DASessionRef,
    media: io_service_t,
) -> DADiskRef
Expand description

Creates a new disk object.

§Parameters

  • allocator - The allocator object to be used to allocate memory.
  • session - The DASession in which to contact Disk Arbitration.
  • media - The I/O Kit media object.

§Returns

A reference to a new DADisk.

§Discussion

The caller of this function receives a reference to the returned object. The caller also implicitly retains the object and is responsible for releasing it with CFRelease.