Function DADiskCreateFromBSDName

Source
pub unsafe extern "C-unwind" fn DADiskCreateFromBSDName(
    allocator: Option<&CFAllocator>,
    session: &DASession,
    name: NonNull<c_char>,
) -> Option<CFRetained<DADisk>>
Available on crate features DADisk and DASession only.
Expand description

Creates a new disk object.

Parameter allocator: The allocator object to be used to allocate memory.

Parameter session: The DASession in which to contact Disk Arbitration.

Parameter name: The BSD device name.

Returns: A reference to a new DADisk.

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