ioc_create_icq(9)
π ioc_create_icq β like, the kernel API manual page, bestie π
okay so this is ioc_create_icq(9) from the Kernel API Manual, and it's lowkey one of those tiny functions that does a whole lot of heavy lifting. buckle up π¦
β¨ NAME β¨
ioc_create_icq β create and link io_cq π
πΈ SYNOPSIS πΈ
struct io_cq * ioc_create_icq (struct request_queue *q );
literally the whole signature, no cap π₯
π§ ARGUMENTS π§
qβ therequest_queueof interest π like, the queue you're curious about, that's the one
π DESCRIPTION π
So the vibe here is: make sure the io_cq that links ioc and q actually exists. that's the whole mission π«Ά
If that icq doesn't exist yet? no stress β they will be created using gfp_mask. β¨ (yes, gfp_mask gets mentioned here even though it's not in the arg list β that's just how it is, iykyk π)
β οΈ okay important part, pay attention bestie: the caller is responsible for making sureiocwon't go away, and thatqis alive and stays alive until this function returns. that's on you, not on the function. main character responsibility energy π
π¦ SEE ALSO π¦
- Kernel file
./block/blk-ioc.cβ the source, go read it, it's giving iconic π get_io_context(9)ioc_clear_queue(9)put_io_context(9)ioc_lookup_icq(9)
okay that's the whole page, no filler, all facts, we ate that π
sign-off time: this cutie lives in ./block, and it's dated October 2026 β same month, same page name ioc_create_icq(9), slay βππ
π¦ 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