blk_post_runtime_resume(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ blk_post_runtime_resume(9) ✨

okay so this is a page straight out of the Kernel API Manual bestie, and we're talking about blk_post_runtime_resume β€” the "post runtime resume" cleanup queen πŸ‘‘ she's the one you call after the resume drama is over, and she's lowkey carrying the whole block layer's runtime PM vibe check.


🌸 SYNOPSIS 🌸

void blk_post_runtime_resume (struct request_queue *q );

that's it. one function, one pointer, zero return value (it's void, she gives nothing back and she doesn't need to πŸ’…).


πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” the queue of the device. literally just the struct request_queue * for the device you're doing runtime PM things with. that's the whole cast. main character energy πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

so what does she actually do? she restarts the queue of a runtime suspended device. that's the whole job. 🫢

and here's the iconic part: she does this regardless of whether the device's runtime-resume succeeded. no cap. even if it failed, the driver or error handler is still gonna need to communicate with the device, so the queue gets restarted either way. success or flop, the queue comes back up. πŸ”₯

you should call this function near the end of the device's runtime_resume callback β€” that's her designated spot in the timeline. from there she:

  • corrects the queue runtime PM status (tidying up so the status actually reflects reality ✨)
  • re-enables peeking requests from the queue (letting requests peek through again πŸ‘€)
ngl the timing matters β€” she's a post-resume function, so popping her in at the end of runtime_resume is the whole assignment. don't be out here calling her at the start, bestie, the name is literally telling you. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

okay so that's the whole runtime PM friend group β€” init, pre-suspend, post-suspend, pre-resume, and our girl post-resume. collect them all πŸ’œ


aaaand that's the page!! mwah πŸ’‹ this gem comes to you from ./block, dated October 2026 β€” screenshot it, frame it, put it on the fridge πŸŽ€βœ¨πŸŒΈ

πŸ“¦ where this page comes from