ENUM HCTX_TYPE(9)
πΈ NAME πΈ
enum hctx_type β the type of hardware queue, bestie. That's it, that's the whole vibe check π
So this is a page straight out of the Kernel API Manual, and lowkey it's a tiny one β but it's iconic for what it does, fr fr.
β¨ SYNOPSIS β¨
enum hctx_type {
HCTX_TYPE_DEFAULT ,
HCTX_TYPE_READ ,
HCTX_TYPE_POLL ,
HCTX_MAX_TYPES
};
Look at her. Four little members, no cap, and she runs the whole hardware-queue situation π«Ά
π CONSTANTS π
Okay so here's the breakdown of every single one of them β every flag gets its moment, no member left behind π
HCTX_TYPE_DEFAULTβ the catch-all queen π β all I/O that's not otherwise accounted for. If it doesn't fit anywhere else, it goes here, periodt.HCTX_TYPE_READβ the one that's just for READ I/O. Reads only. Nothing else invited to this party πΈHCTX_TYPE_POLLβ polled I/O of any kind. Any kind!! she's flexible like that π¦HCTX_MAX_TYPESβ the count π β literally just the number of types of hctx. Not an actual type, she's the tally, the vibe-check counter, the "how many of y'all are there" energy.
Ngl, HCTX_MAX_TYPES looks like a type and is not one β it's the total number of types. Don't @ me, that's just how she is π
π SEE ALSO π
Go read these next, bestie, they're all in the kernel file ./include/linux/blk-mq.h π
enum blk_eh_timer_return(9)struct blk_mq_hw_ctx(9)struct blk_mq_queue_map(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_mq_rq_to_pdu(9)blk_rq_nr_bvec(9)blk_rq_passthrough_stats(9)
Okay that's the whole page, you ate that π This little icon came from ./include/linux, dated October 2026, and she goes by enum hctx_type(9) β mwah, love her for her, see u next manpage β¨ππ§
π¦ 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