get_max_segment_size(9)
π get_max_segment_size β kernel API manual (section 9, bestie)
okay so welcome to the get_max_segment_size(9) page, straight out of the Kernel API Manual β¨ this is the one that tells you the maximum number of bytes you can add as a single segment. yes, that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
get_max_segment_size β maximum number of bytes to add as a single segment π
πΈ SYNOPSIS πΈ
unsigned get_max_segment_size (const struct queue_limits *lim ,
phys_addr_t paddr , unsigned int len );
like, look at her. three args, returns an unsigned, main character energy fr fr π
π ARGUMENTS π
limβ Request queue limits. the literal limits of the request queue, she's the rulebook πpaddrβ address of the range to add πlenβ maximum length available to add atpaddr. key word maximum, don't forget it π
π¦ DESCRIPTION π¦
Returns the maximum number of bytes of the range starting at paddr that can be added to a single segment. that's it, that's the function. she's short, she's sweet, she knows exactly what she's about β¨π
π SEE ALSO π
- Kernel file
./block/blk.h __bio_split_to_limits(9)
iykyk, go read those next π
no cap bestie, this is the whole page β every arg, every type, all of it, nothing skipped π
okay and for the cute lil sign-off: this one lives under ./block, dated October 2026, and it's get_max_segment_size(9) all over again in the footer. slay, periodt ππ¦π
π¦ 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