proc_uint_conv(9)
π» proc_uint_conv π
okay bestie, welcome to the proc_uint_conv(9) page from the Kernel API Manual β¨ this one is literally all about changing a user pointer or a kernel pointer depending on which way the data is flowing π¦
πΈ SYNOPSIS πΈ
int proc_uint_conv (ulong *u_ptr , uint *k_ptr , int dir , const struct
ctl_table *tbl , bool k_ptr_range_check , int (*user_to_kern)(const
ulong *u_ptr, uint *k_ptr) , int (*kern_to_user)(ulong *u_ptr, const
uint *k_ptr) );
like, that's the whole signature bestie β don't let the line wrapping scare you π«Ά
π ARGUMENTS π
u_ptrβ pointer to the user variable πk_ptrβ pointer to the kernel variable π§dirβTRUEif this is a write to the sysctl file πtblβ the sysctl table πk_ptr_range_checkβ check the range fork_ptrwhen this isTRUEπ₯user_to_kernβ callback used to assign the value from the user var to the kernel var π¦kern_to_userβ callback used to assign the value from the kernel var to the user var π
β¨ DESCRIPTION β¨
so here's the vibe check: when the direction is kernel to user, then u_ptr is the one getting modified π
and when the direction is user to kernel, then k_ptr is the one getting modified π that's it, that's the whole plot π
β RETURN β
0 on success π (slay)
π¦ SEE ALSO π¦
- Kernel file
./kernel/sysctl.c 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_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_dointvec_conv(9)proc_do_large_bitmap(9)
ngl bestie, that's a whole friend group of functions right there β go read them too, iykyk π
and that's a wrap, angel π this page is from ./kernel, dated October 2026, and it's literally the proc_uint_conv(9) page β 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