proc_dointve...erhz_jiffies(9)
π proc_dointve...erhz_jiffies(9) π
okay so this page is literally from the Kernel API Manual β yes that Kernel API Manual, the one our fave kernel devs keep in ./kernel/time β and it's about one very specific little sysctl helper. buckle up bestie, it's giving niche but iconic π
β¨ NAME β¨
proc_dointvec_userhz_jiffies β read a vector of integers as 1/USER_HZ seconds π«
πΈ SYNOPSIS πΈ
int proc_dointvec_userhz_jiffies (const struct ctl_table *table , int
dir , void *buffer , size_t *lenp , loff_t *ppos );
like, five args, no cap. let's go through them one by one π«Ά
π ARGUMENTS π
tableβ the sysctl table, the main character of this whole operation πdirβTRUEif this is a write to the sysctl file. so it's basically the "are we writing or reading" vibe check πbufferβ the user buffer, where the actual data lives πlenpβ the size of the user buffer. yes, a pointer to the size, we're fancy like that β¨pposβ pointer to the file position π―
π¦ DESCRIPTION π¦
okay so here's the tea β β this thing reads/writes up to table->maxlen/sizeof(unsigned int) integer values from/to the user buffer, treated as an ASCII string. yes, ASCII, we're being textual about it π
and the values it reads? they're assumed to be in 1/USER_HZ seconds, and then they get converted into jiffies. so it's literally just a units conversion moment, slay π§
Returns 0 on success. that's it, that's the whole mood β¨
β SEE ALSO β
- Kernel file
./kernel/time/jiffies.c proc_dointvec_jiffies(9)proc_dointvec_ms_jiffies(9)proc_doulongvec_ms_jiffies_minmax(9)
ngl bestie, if you're messing with jiffies and HZ conversions, go read those siblings too. they're the supporting cast and they ate π
and that's the whole page, periodt π huge thanks to the kernel crew over in ./kernel/time β this edition is dated October 2026, and the source lives right there in ./kernel/time alongside proc_dointve...erhz_jiffies(9). go touch some grass (or a kernel tree) 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