usb_of_get_connect_type(9)
π usb_of_get_connect_type(9) π
Okay bestie, welcome to the Kernel API Manual page for usb_of_get_connect_type(9) β the function that gets a USB hub's port connect_type. No cap, it's giving very specific USB energy. π¦
πΈ NAME πΈ
usb_of_get_connect_type β get a USB hub's port connect_type π
β¨ SYNOPSIS β¨
enum usb_port_connect_type usb_of_get_connect_type (struct usb_device
*hub , int port1 );
π«Ά ARGUMENTS π«Ά
hubβ the hub thatport1belongs to π«Άport1β the one-based index of the port β¨
π DESCRIPTION π
So here's the vibe check: this function gets the connect_type of port1, based on the device node for hub.
- If the port is described in the OF graph, the
connect_typeis"hotplug"π₯ - If the hub has a child device with a
'reg'property equal toport1, theconnect_typeis"hard-wired"π - If there isn't an OF graph or child node at all, then the
connect_typeis"unknown"π - Otherwise, the port is considered
"unused"because it isn't described at all π
π RETURN π
A connect_type for port1, based on the device node for hub. That's the whole return vibe. β¨
π SEE ALSO π
- Kernel file
./drivers/usb/core/of.cπ usb_of_get_device_node(9)πusb_of_has_combined_node(9)π«usb_of_get_interface_node(9)β
That's the page, bestie. The footer vibe is source/version ./drivers/usb/core, dated October 2026, and it's usb_of_get_connect_type(9) from the Kernel API Manual β bye, go slay those USB hubs π
β¨π
π¦ 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