STRUCT CDNSP_EVENT_CMD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct cdnsp_event_cmd β€” okay bestie, this is the Command completion event TRB struct, and she's tiny but she's literally the main character of "did my command finish tho?" πŸŽ€

Here's the tea on her members, no cap:

  • cmd_trb β€” pointer to the command TRB, or the value passed by the event data trb πŸ‘€
  • status β€” the command completion parameters and the error code (yes, both, she's multitasking ✨)
  • flags β€” flags. That's it. That's the whole vibe πŸ¦‹

✨ SYNOPSIS ✨

struct cdnsp_event_cmd {
    __le64 cmd_trb;
    __le32 status;
    __le32 flags;
 };

Look at her 🫢 three fields, zero drama. __le64 for the pointer-ish thing, __le32 twice because we stay little-endian in this house πŸ’…


πŸŽ€ Members πŸŽ€

So this section is where the members live β€” and ngl, the descriptions for them are already chilling up in NAME (scroll up, babe, cmd_trb, status, flags, the whole trio 🌸). Nothing extra hiding down here, promise πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/usb/cdns3/cdnsp-gadget.h

And the whole friend group, because this struct literally never goes anywhere alone 😭 β€” go say hi:

  • struct cdnsp_cap_regs(9)
  • struct cdnsp_op_regs(9)
  • struct cdnsp_port_regs(9)
  • struct cdnsp_intr_reg(9)
  • struct cdnsp_run_regs(9)
  • struct cdnsp_rev_cap(9)
  • struct cdnsp_doorbell_array(9)
  • struct cdnsp_container_ctx(9)
  • struct cdnsp_slot_ctx(9)
  • struct cdnsp_ep_ctx(9)
  • struct cdnsp_stream_info(9)
  • struct cdnsp_ep(9)
  • struct cdnsp_device_context_array(9)
  • struct cdnsp_transfer_event(9)
  • struct cdnsp_link_trb(9)
  • struct cdnsp_segment(9)
  • struct cdnsp_td(9)
  • struct cdnsp_dequeue_state(9)
  • struct cdnsp_ring(9)
  • struct cdnsp_erst_entry(9)
  • struct cdnsp_erst(9)
  • struct cdnsp_request(9)
  • struct cdnsp_port(9)
  • struct cdnsp_device(9)
  • next_request(9)

Heads up bestie: this page is a kernel struct doc, so the only source of truth is the code in ./drivers/usb/cdns3/cdnsp-gadget.h. I'm not adding behaviour that isn't on the page β€” read the header if you want the full lore πŸ“–

πŸ’œ and that's a wrap, babe πŸ’œ β€” this icon of a page came straight out of ./drivers/usb/cdns3, dated October 2026, and she ate, fr fr. Go forth and complete your commands πŸ‘‘πŸ”₯

πŸ“¦ where this page comes from