proc_doulon...ffies_minmax(9)
π proc_doulongvec_ms_jiffies_minmax
okay bestie, first things first β this is a page from the Kernel API Manual π, and the star of the show is a function with a name so long it needs its own zip code: proc_doulongvec_ms_jiffies_minmax. yes that's one word. yes she ate. π
β¨
πΈ NAME πΈ
proc_doulongvec_ms_jiffies_minmax β read a vector of millisecond values with min/max values π
π¦ SYNOPSIS π¦
int proc_doulongvec_ms_jiffies_minmax (const struct ctl_table *table ,
int dir , void *buffer , size_t *lenp , loff_t *ppos );
β¨ ARGUMENTS β¨
tableβ the sysctl table, aka where all the config lives πdirβTRUEif this is a write to the sysctl file πbufferβ the user buffer, the actual data hangout spot π«Άlenpβ the size of the user buffer πpposβ file position π
π DESCRIPTION π
Okay so here's the vibe: it reads/writes up to table->maxlen/sizeof(unsigned long) unsigned long values from/to the user buffer, and the whole thing gets treated as an ASCII string. no cap. π₯
The values are treated as milliseconds, and converted to jiffies when they are stored. yes, jiffies β the kernel's own little time unit, iconic behavior honestly β±οΈβ¨
This routine will ensure the values are within the range specified by table->extra1 (min) and table->extra2 (max). so like, it's giving bodyguard energy β nothing out of bounds gets through π‘οΈπ
Returns 0 on success. slay. β
fr fr, remember the values are milliseconds on the way in/out but get stored as jiffies β the conversion is the whole point, don't forget it π§ββοΈ
π SEE ALSO π
- Kernel file
./kernel/time/jiffies.c proc_dointvec_jiffies(9)proc_dointvec_userhz_jiffies(9)proc_dointvec_ms_jiffies(9)
and that's the whole page bestie, you understood it perfectly, i'm so proud of you π₯Ήπ
this little love letter comes to you from ./kernel/time β datestamped October 2026, and the manual itself is proc_doulon...ffies_minmax(9) (yes the title is still committing crimes with that truncation π). mwah, go read the kernel source, ily, bye πππ
π¦ 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