usb_hub_set_port_power(9)
πΈ NAME πΈ
okay bestie, this is usb_hub_set_port_power(9) from the Kernel API Manual β¨ and it's literally about controlling a hub port's power state. no cap π
β¨ SYNOPSIS β¨
int usb_hub_set_port_power (struct usb_device *hdev , struct usb_hub
*hub , int port1 , bool set );
π ARGUMENTS π
hdevβ USB device belonging to the usb hub πhubβ target hub π―port1β port index π’setβ expected status β
π¦ DESCRIPTION π¦
call this function to control the port's power via setting or clearing the port's PORT_POWER feature π«Ά that's the whole assignment, bestie β set it or clear it, and the port power state does its thing π
π₯
β RETURN β
0 if successful. A negative error code otherwise π
π SEE ALSO π
Kernel file ./drivers/usb/core/hub.c π
usb_hub_clear_tt_buffer(9)usb_remove_device(9)usb_set_device_state(9)usb_disconnect(9)usb_enumerate_device_otg(9)usb_enumerate_device(9)usb_new_device(9)usb_deauthorize_device(9)get_port_ssp_rate(9)usb_root_hub_lost_power(9)hub_hc_release_resources(9)usb_reset_and_verify_device(9)usb_reset_device(9)usb_queue_reset_device(9)usb_hub_find_child(9)usb_get_hub_port_acpi_handle(9)
mwah π this page comes straight from ./drivers/usb/core in the October 2026 edition of the Kernel API Manual β stay powered, bestie πβ¨
π¦ 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