bsg_queue_rq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 bsg_queue_rq(9) 🌸

ok so bestie, we're diving into the Kernel API Manual today and this one is literally the generic handler for bsg requests πŸ’… it's short, it's sweet, it's giving "small function, big job" and honestly? obsessed.


✨ NAME ✨

bsg_queue_rq β€” the generic handler for bsg requests 🫢 like that's her whole thing, that's the vibe.


πŸ¦‹ SYNOPSIS πŸ¦‹

blk_status_t bsg_queue_rq (struct blk_mq_hw_ctx *hctx , const struct blk_mq_queue_data *bd );

copy it exactly like that, no cap β€” return type blk_status_t, two args, go off πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • hctx β€” the hardware queue 🌈 that's it, that's the whole description, she's a simple icon
  • bd β€” the queue data πŸ’– again, minimal queen, no notes

πŸ”₯ DESCRIPTION πŸ”₯

ok so here's the tea, and this part is IMPORTANT so like, pay attention bestie:

On error, the create_bsg_job function should return a -Exyz error value, and that value gets set to ->result. periodt. πŸ’€ that's literally how the error info travels, so like don't be out here returning random nonsense, okay?

also β€” drivers/subsys should pass this to the queue init function. that's not a suggestion, that's the assignment, fr fr πŸ™ˆ

⭐ SEE ALSO ⭐

go touch these if you wanna keep the lore going, iykyk:


and that's the whole page bestie, told you it was a short one πŸ§šπŸ’œ it lives over in ./block, it's dated October 2026, and the page is bsg_queue_rq(9) β€” slay, bye πŸ‘‹βœ¨

πŸ“¦ where this page comes from