qed_mcp_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qed_mcp_cmd β€” sleepable MCP mailbox command sender (from the Kernel API Manual, qed_mcp_cmd(9))

okay so bestie, gather round, because this one is literally the little function that could: qed_mcp_cmd is a sleepable function for sending commands to the MCP mailbox. Like, the whole operation β€” from the moment you send the request until the MCP answers back β€” is wrapped in a mutex lock. One command at a time, no cutting in line, we are classy here πŸ’…

The wait for that MCP response gets checked every 10ms, up to 5 seconds total. So yes, she waits. patiently. with a timer. ⏰

🚨 and this is the big one: should not be called from atomic context. fr fr, don't do it. She sleeps, atomic context does not. that's a whole disaster waiting to happen 😭

✨ SYNOPSIS ✨

int qed_mcp_cmd (struct qed_hwfn *p_hwfn , struct qed_ptt *p_ptt , u32
cmd , u32 param , u32 *o_mcp_resp , u32 *o_mcp_param );

like, six args, one int, endless vibes 🌸


πŸŽ€ ARGUMENTS πŸŽ€

  • p_hwfn β€” the HW device data. the main character of the hardware world πŸ‘‘
  • p_ptt β€” the PTT you need for register access. no PTT, no entry, iykyk πŸ¦‹
  • cmd β€” the command being sent to the MCP. the actual message, the whole point 🫢
  • param β€” optional param. optional! she doesn't have to show up ✨
  • o_mcp_resp β€” the MCP response code (exclude sequence). this is where the answer lands πŸ’–
  • o_mcp_param β€” optional parameter provided by the MCP response. MCP said "here, you might want this too" πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

Int β€” and:

  • 0 β€” operation was successul. (that's their spelling, not mine, bestie πŸ’€ but yes, zero equals slay)

πŸ‘‘ SEE ALSO πŸ‘‘

bestie. bestie. sit down. the friend group is massive and every single one of them is here πŸ’œ

First up, the kernel file herself:

  • ./drivers/net/ethernet/qlogic/qed/qed_mcp.h

and now the full roster, no cap, nobody gets left out:

like. seventy-something siblings. one big happy qed family 🌈


and that's the page, bestie ✨ this came to you straight out of ./drivers/net/ethernet/qlogic/qed, dated October 2026, and you know she's still rocking the qed_mcp_cmd(9) title. go forth, send commands, do NOT do it in atomic context. mwah πŸ’–

πŸ“¦ where this page comes from