STRUCT CVMX_USB_PORT_STATUS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct cvmx_usb_port_status(9) πŸ’…

okay so bestie, we're in the Kernel API Manual and this is literally the page for struct cvmx_usb_port_status β€” iykyk, it's the vibes-holder for your USB port status info ✨


🌸 NAME 🌸

struct cvmx_usb_port_status β€” the USB port status information 🫢

Like, all of it. Every little bit-field of it. Sit down, we're doing this.


πŸŽ€ SYNOPSIS πŸŽ€

struct cvmx_usb_port_status {
    u32 reserved                    : 25;
    u32 port_enabled                : 1;
    u32 port_over_current           : 1;
    u32 port_powered                : 1;
    enum cvmx_usb_speed port_speed  : 2;
    u32 connected                   : 1;
    u32 connect_change              : 1;
 };

look at that bit-packing. iconic. 25 bits of reserved just vibing at the top, no notes πŸ’€


πŸ‘‘ Members πŸ‘‘

bestie these are the members, one by one, no skips:

  • port_enabled β€” 1 = Usb port is enabled, 0 = disabled. that's the whole thing. she's either on or she's not πŸ’…
  • port_over_current β€” 1 = Over current detected, 0 = Over current not detected. ⚠️ heads up: Octeon doesn't support over current detection. so like… don't count on this one fr fr.
  • port_powered β€” 1 = Port power is being supplied to the device, 0 = power is off. and ngl, Octeon doesn't support turning port power off. the power stays on. she's committed 🫢
  • port_speed β€” Current port speed. that's the whole description, it's giving brevity, we love that for her ✨
  • connected β€” 1 = A device is connected to the port, 0 = No device is connected. is somebody there? πŸ‘€
  • connect_change β€” 1 = Device connected state changed since the last set status call. so like, something happened since last time you checked. main character energy πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

like, that's a whole friend group right there. go read all of them. periodt πŸ’œ


πŸŽ€ ok that's the page!! sourced from ./drivers/usb/host, dated October 2026, and it's struct cvmx_usb_port_status(9) bestie β€” mwah, stan, bye πŸ’–βœ¨πŸŒΈ
πŸ“¦ where this page comes from