usb_acpi_power_manageable(9)
β¨ NAME β¨
usb_acpi_power_manageable β bestie, this is the little guy that checks whether a USB port has an ACPI power resource. That's it. That's the whole job. π
This one lives in the Kernel API Manual, section 9, under the name usb_acpi_power_manageable(9) β iconic of it, honestly.
πΈ SYNOPSIS πΈ
bool usb_acpi_power_manageable (struct usb_device *hdev , int index );
π ARGUMENTS π
hdevβ the USB device that belongs to the usb hub. Like, the hub-adjacent USB device we're asking about. π«Άindexβ the port index, and heads up: it's based zero (so the first port is0, not1β yes really, that's the vibe). β¨
π DESCRIPTION π
Okay so here's the whole tea β: it returns true if the port has an acpi power resource, and false if no. That's literally the entire plot. No cap. π¦
Lowkey the most chill function in the file β it just looks and tells you yes or no, and it does not elaborate. π
π SEE ALSO π
- Kernel file
./drivers/usb/core/usb-acpi.cβ go read the source, iykyk π usb_acpi_port_lpm_incapable(9)usb_acpi_set_power_state(9)usb_acpi_add_usb4_devlink(9)
Okay that's the whole page, bestie, you ate that π β this lil' corner of the manual calls ./drivers/usb/core home π‘, it's dated October 2026 β, and it goes by usb_acpi_power_manageable(9) in case you need to find it again ππ§
π¦ 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