usb_of_get_connect_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 that port1 belongs 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_type is "hotplug" πŸ”₯
  • If the hub has a child device with a 'reg' property equal to port1, the connect_type is "hard-wired" πŸ”Œ
  • If there isn't an OF graph or child node at all, then the connect_type is "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 πŸŽ€


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