qed_mcp_drain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so this is a page from the Kernel API Manual, and the star of the show is qed_mcp_drain β€” the function that drains the nig, allowing completion to pass in case of pauses. Yes, that's the actual wording and we are NOT touching it. πŸ”₯

Heads up fr fr: this one should be called only from sleepable context. Not optional, not a vibe suggestion β€” sleepable context only, bestie. πŸ˜΄πŸ’€

✨ SYNOPSIS ✨

int qed_mcp_drain (struct qed_hwfn *p_hwfn , struct qed_ptt *p_ptt );

it gives back an int, takes two pointers, and honestly that's the whole arc. πŸ¦‹


🌸 ARGUMENTS 🌸

  • p_hwfn β€” the HW device data. like, the whole hardware situation lives in here, she's the main character of this struct πŸ’–
  • p_ptt β€” the PTT you need for register access. no PTT, no registers, no service. periodt. ✨

πŸ‘‘ RETURN πŸ‘‘

It returns an Int. that's it, that's the return section, we love a low-drama return value 🫢


🌈 SEE ALSO 🌈

first up, the kernel file where all this lives, no cap:

Kernel file ./drivers/net/ethernet/qlogic/qed/qed_mcp.h

and then the whole friend group β€” every single one of these cuties is related and we are NOT leaving anybody out of the group chat πŸ’œ:


so that's the whole page, and it comes to you straight from ./drivers/net/ethernet/qlogic/qed, dated October 2026, and it's qed_mcp_drain(9) in the Kernel API Manual. mwah, go drain that nig responsibly, in sleepable context only πŸ’‹πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from