Contents

IOObjectRelease(_:)

Releases an object handle previously returned by IOKitLib.

Declaration

func IOObjectRelease(_ object: io_object_t) -> kern_return_t

Parameters

  • object:

    The IOKit object to release.

Return Value

A kern_return_t error code.

Discussion

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.

See Also

Miscellaneous