proc_dointvec_conv(9)
π proc_dointvec_conv β Kernel API Manual, section 9 π
okay so bestie, welcome to the section 9 glow-up of proc_dointvec_conv. this is the sysctl helper that reads a whole vector of ints with a custom converter callback, and it's lowkey iconic. let's get into it π
β¨ NAME β¨
proc_dointvec_conv β read a vector of ints with a custom converter
πΈ SYNOPSIS πΈ
int proc_dointvec_conv (const struct ctl_table *table , int dir , void *buffer , size_t *lenp , loff_t *ppos , int (*conv)(bool *negp, unsigned long *u_ptr, int *k_ptr, int dir, const struct ctl_table *table) );
π¦ ARGUMENTS π¦
tableβ the sysctl table. the main character, honestly πdirβ TRUE if this is a write to the sysctl file. like, are we writing or are we just reading, bestie, pick a lane πbufferβ the user buffer. that's where the data vibes livelenpβ the size of the user buffer. the receipts for how much room we've gotpposβ file position. where we're at, iykykconvβ Custom converter call back. Defaults todo_proc_int_conv. this is the plug π β you can hand it your own converter and it'll slay on your behalf
π DESCRIPTION π
Reads/writes up to table->maxlen/sizeof(int) integer values from/to the user buffer, treated as an ASCII string.
fr fr that's the whole tea β β that many ints, and the buffer is just an ASCII string on the way in and out. no cap.
β RETURN β
0 on success. periodt. π
ngl, there's exactly one return value documented here and it's the happy one β don't go assuming anything else about failure, bestie, because this page doesn't say π
π SEE ALSO π
Kernel file ./kernel/sysctl.c, plus the whole friend group:
enum sysctl_writes_mode(9)proc_first_pos_non_zero_ignore(9)proc_dostring(9)strtoul_lenient(9)proc_get_long(9)proc_put_long(9)proc_uint_u2k_conv_uop(9)proc_uint_k2u_conv(9)proc_uint_conv(9)proc_int_k2u_conv_kop(9)proc_int_u2k_conv_uop(9)proc_int_conv(9)proc_douintvec_conv(9)proc_dobool(9)proc_dointvec(9)proc_douintvec(9)proc_dointvec_minmax(9)proc_douintvec_minmax(9)proc_dou8vec_minmax(9)proc_ulong_conv(9)proc_ulong_u2k_conv_uop(9)proc_ulong_k2u_conv_kop(9)proc_doulongvec_conv(9)proc_doulongvec_minmax(9)proc_do_large_bitmap(9)
that's the whole page, bestie π«Ά go forth and convert your ints π
and for the credits moment: this one lives under ./kernel, dated October 2026, filed as proc_dointvec_conv(9). stan. β¨π
π¦ 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