STRUCT CVMX_USB_PORT_STATUS(9)
π 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 π¦
- Kernel file
./drivers/usb/host/octeon-hcd.c enum cvmx_usb_speed(9)enum cvmx_usb_transfer(9)enum cvmx_usb_direction(9)enum cvmx_usb_status(9)struct cvmx_usb_iso_packet(9)enum cvmx_usb_initialize_flags(9)enum cvmx_usb_pipe_flags(9)struct cvmx_usb_transaction(9)struct cvmx_usb_pipe(9)struct octeon_hcd(9)struct octeon_temp_buffer(9)octeon_alloc_temp_buffer(9)octeon_free_temp_buffer(9)octeon_map_urb_for_dma(9)octeon_unmap_urb_for_dma(9)
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'sstruct cvmx_usb_port_status(9)bestie β mwah, stan, bye πβ¨πΈ
π¦ 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