Contents

SetIsHidden

Sets a Boolean value to indicate whether the device is hidden.

Declaration

kern_return_t SetIsHidden(bool in_is_hidden);

Parameters

  • in_is_hidden:

    true if the device is hidden; otherwise, false.

Return Value

kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

Discussion

A true value indicates the device isn’t included in the normal list of devices, and is only findable by its UID. A hidden device can’t be the default device.

See Also

Working with Clock Device State