usb_autoresume_device(9)
okay bestie, this is the usb_autoresume_device(9) page from the Kernel API Manual β and it's giving very important USB-core energy π
β¨
π NAME π
usb_autoresume_device β immediately autoresume a USB device and its interfaces π
π¦ SYNOPSIS π¦
int usb_autoresume_device (struct usb_device *udev );
πΈ ARGUMENTS πΈ
udevβ theusb_deviceto autoresume. That's the main character right there π
β¨ DESCRIPTION β¨
okay so this routine should be called when a core subsystem wants to use udev and needs to guarantee that it is not suspended. No autosuspend will occur until usb_autosuspend_device is called. π«Ά
tiny caveat, bestie: this will not prevent suspend events originating in the PM core π
Examples would be when udev's device file in usbfs is opened, or when a remote-wakeup request is received. β¨
udev's usage counter is incremented to prevent subsequent autosuspends. However, if the autoresume fails, then the usage counter is re-decremented. π
The caller must hold udev's device lock. no exceptions, periodt π
This routine can run only in process context. π
π RETURN π
0on success. π- A negative error code otherwise. π
π SEE ALSO π
Kernel file ./drivers/usb/core/driver.c β plus the whole USB friend group:
usb_driver_claim_interface(9)usb_driver_release_interface(9)usb_match_id(9)usb_register_device_driver(9)usb_deregister_device_driver(9)usb_register_driver(9)usb_deregister(9)usb_suspend_both(9)usb_resume_both(9)usb_enable_autosuspend(9)usb_disable_autosuspend(9)usb_autosuspend_device(9)usb_autopm_put_interface(9)usb_autopm_put_interface_async(9)usb_autopm_put_interface_no_suspend(9)usb_autopm_get_interface(9)usb_autopm_get_interface_async(9)usb_autopm_get_interface_no_resume(9)
mwah π this cutie comes from the source/version ./drivers/usb/core, dated October 2026, and the manual name on the footer is usb_autoresume_device(9) β slay and goodbye π«ΆπΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms