Contents

DADiskCopyIOMedia(_:)

Obtains the I/O Kit media object for the specified disk.

Declaration

func DADiskCopyIOMedia(_ disk: DADisk) -> io_service_t

Parameters

  • disk:

    The DADisk for which to obtain the I/O Kit media object.

Return Value

The disk’s I/O Kit media object.

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 IOObjectRelease().

See Also

Miscellaneous