seq_show_option_n(9)
π seq_show_option_n(9) β from the Kernel API Manual, bestie β¨
okay so real talk, this one lives in the Kernel API Manual and it's a macro that prints mount options with the right escapes β but only when @value is a specific length, aka NOT NUL-terminated. yes that's the whole personality. let's get into it π
β¨ NAME β¨
seq_show_option_n β display mount options with appropriate escapes where @value must be a specific length (i.e. not NUL-terminated). no cap, that's literally the job π«Ά
πΈ SYNOPSIS πΈ
seq_show_option_n (m , name , value , length );
π¦ ARGUMENTS π¦
mβ theseq_filehandle πnameβ the mount option namevalueβ the mount option name's value, and it cannot be NULL π«lengthβ the exact length ofvalueto display, and it must be constant expression β
π DESCRIPTION π
so here's the tea: this is a macro π§ because it uses "length" to define the size of the stack buffer. that's the whole reason it's not a function, bestie β the length has to be baked in at compile time. iconic behavior honestly π₯
π SEE ALSO π
Kernel file ./include/linux/seq_file.h plus the whole friend group:
π lowkey reminder:valuecannot be NULL, andlengthmust be a constant expression. don't try her with a runtime variable, she will NOT be nice about it π
and that's the page!! mwah π this cutie comes to you from ./include/linux, dated October 2026 β go forth and escape your mount options correctly, ily, bye bestie ππ¦π
π¦ 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