IOObjectRelease

Function IOObjectRelease 

Source
pub extern "C-unwind" fn IOObjectRelease(
    object: io_object_t,
) -> kern_return_t
Available on crate feature libc only.
Expand description

Releases an object handle previously returned by IOKitLib.

All objects returned by IOKitLib should be released with this function when access to them is no longer needed. Using the object after it has been released may or may not return an error, depending on how many references the task has to the same object in the kernel.

Parameter object: The IOKit object to release.

Returns: A kern_return_t error code.