blk_mq_rq_to_pdu(9)
β¨ 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 π
enum blk_eh_timer_return(9)struct blk_mq_hw_ctx(9)struct blk_mq_queue_map(9)enum hctx_type(9)struct blk_mq_tag_set(9)struct blk_mq_queue_data(9)struct blk_mq_ops(9)blk_mq_rq_state(9)blk_mq_add_to_batch(9)blk_mq_rq_from_pdu(9)blk_rq_nr_bvec(9)blk_rq_passthrough_stats(9)
signed, sealed, slayed: source/version./include/linux, dateOctober 2026πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms