pub extern "C-unwind" fn IOPMSleepSystem(fb: io_connect_t) -> IOReturnAvailable on crate features
libc and pwr_mgt only.Expand description
Request that the system initiate sleep.
For security purposes, caller must be root or the console user.
Parameter fb: Port used to communicate to the kernel, from IOPMFindPowerManagement.
Returns: Returns kIOReturnSuccess or an error condition if request failed.