Contents

SetName

Sets the name of the driver.

Declaration

kern_return_t SetName(OSString *in_name);

Parameters

  • in_name:

    The name to set, as an Osstring.

Return Value

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

Discussion

If the change succeeds, the framework sends a notification to the host to update its object state. Setting the name synchronizes by using the work queue created by the object.

See Also

Getting Information About the Class