ioc_clear_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ioc_clear_queue β€” the kernel API manual, but make it cute ✨

okay so bestie, welcome to ioc_clear_queue(9) from the Kernel API Manual πŸ’– this one's short and sweet, and honestly? iconic for it.


🌸 NAME 🌸

ioc_clear_queue β€” break any ioc association with the specified queue

like, all of them. every last one. gone. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

void ioc_clear_queue (struct request_queue *q );

returns nothing (void, so don't go looking for a return value, she gives you nothing back and that's her right πŸ‘‘), and takes exactly one thing, bestie: q.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • q β€” the request_queue being cleared. that's the one, that's the queue in question, she's getting cleared ✨

πŸ’œ DESCRIPTION πŸ’œ

So here's the vibe: it walks q->icq_list and exits all io_cq's. that's the whole bit. walk the list, exit the io_cq's, done. no cap, she's efficient like that πŸ™ˆ


🌈 SEE ALSO 🌈

all the sibling functions, the whole friend group fr fr πŸ’–


πŸ“ lowkey reminder: everything above came from ./block/blk-ioc.c territory, so if you're poking around, that's where the lore lives.

and that's the page! mwah πŸ’‹ this one came straight out of ./block, dated October 2026, so you know she's fresh ✨ go forth and clear those queues, bestie πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from