qed_mcp_cmd_nosleep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qed_mcp_cmd_nosleep(9) β€” Kernel API Manual, bestie edition 🌸

okay so this is qed_mcp_cmd_nosleep(9) from the Kernel API Manual, and it's literally the function you call when you need to send commands to the MCP mailbox but you're in a context where you absolutely cannot sleep. no cap. 🫢


✨ NAME ✨

qed_mcp_cmd_nosleep β€” the function for sending commands to the MCP mailbox. it acquires the mutex lock for the entire operation, like from sending the request all the way until the MCP response comes back. πŸ’… the waiting-for-MCP-response part gets checked up to 5 seconds, every 10us. and bestie, the whole point: this one should be called when sleep is not allowed. periodt. 😴🚫


πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • p_hwfn β€” HW device data. that's the hardware main character right there πŸ‘‘
  • p_ptt β€” the PTT required for register access. you need it, no skips πŸ”‘
  • cmd β€” the command being sent to the MCP. say it with your chest πŸ“£
  • param β€” optional param ✨
  • o_mcp_resp β€” the MCP response code (excluding the sequence). the tea β˜•
  • o_mcp_param β€” optional parameter provided by the MCP response 🎁

🌈 RETURN 🌈

Int β€” 0 β€” operation was successul. (that spelling is exactly what the page says, and honestly? iconic of it. we keep it fr fr πŸ’€)

lowkey important: 0 is the only outcome spelled out here β€” the page doesn't tell us what the other values are, so don't go making them up, bestie πŸ™ˆ

⭐ SEE ALSO ⭐

kernel file ./drivers/net/ethernet/qlogic/qed/qed_mcp.h β€” go read it, iykyk πŸ“–

and now the full friend group, everyone gets a mention because the way that list goes on and on is so real:


and that's the whole page, bestie πŸ’œ this whole thing lives at ./drivers/net/ethernet/qlogic/qed, dated October 2026, and you just read qed_mcp_cmd_nosleep(9). go forth and send those commands without sleeping, you absolute icon 🧚✨

πŸ“¦ where this page comes from