blk_mq_rq_to_pdu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this is blk_mq_rq_to_pdu(9) from the Kernel API Manual, and her whole thing is to cast a request to a PDU. no cap, that's the name and the mission πŸ’…

🫢 SYNOPSIS 🫢

void * blk_mq_rq_to_pdu (struct request *rq );

That's the synopsis, and it's giving "one arg, one pointer back" energy ✨

πŸ’… ARGUMENTS πŸ’…

  • rq β€” the request that's getting casted. literally the only argument, she's lowkey carrying the whole function πŸŽ€

πŸŽ€ RETURN πŸŽ€

pointer to the PDU β€” that's the return value, bestie, and that's the whole section 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Driver command data is immediately after the request. So add request to get the PDU. that's the whole trick, iykyk πŸ’–

🌈 SEE ALSO 🌈

Kernel file ./include/linux/blk-mq.h β€” go peek, bestie πŸ‘‘


signed, sealed, slayed: source/version ./include/linux, date October 2026 πŸŽ€βœ¨
πŸ“¦ where this page comes from