proc_int_conv(9)
π
proc_int_conv(9) β Kernel API Manual energy π
okay so bestie, this is proc_int_conv(9) from the Kernel API Manual, and it's literally about changing a user or kernel pointer based on direction. slay. let's get into it π«Ά
β¨ NAME β¨
proc_int_conv β change user or kernel pointer based on direction. no cap, that's the whole name-vibe π
πΈ SYNOPSIS πΈ
int proc_int_conv (bool *negp , ulong *u_ptr , int *k_ptr , int dir ,
const struct ctl_table *tbl , bool k_ptr_range_check , int
(*user_to_kern)(const bool *negp, const ulong *u_ptr, int *k_ptr) , int
(*kern_to_user)(bool *negp, ulong *u_ptr, const int *k_ptr) );
π ARGUMENTS π
negpβ will be passed to uni-directional converters. yes bestie, it gets handed off πu_ptrβ pointer to user variable. user-side pointer, iconic.k_ptrβ pointer to kernel variable. kernel-side pointer, main character.dirβTRUEif this is a write to the sysctl file. direction check, periodt.tblβ the sysctl table. the table in question πͺk_ptr_range_checkβ check range fork_ptrwhenTRUE. only whenTRUE, got it? π₯user_to_kernβ callback used to assign value from user to kernel var. the uβk callback π¦kern_to_userβ callback used to assign value from kernel to user var. the kβu callback π§
π« DESCRIPTION π«
okay so here's the actual tea β: when direction is kernel to user, then the u_ptr is modified. when direction is user to kernel, then the k_ptr is modified. that's the pointer glow-up depending on which way the direction is going, bestie π
β¨
β RETURN β
0 on success. that's it, that's the return. slay π
π SEE ALSO π
go read these too, iykyk:
- 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_uint_conv(9)proc_int_k2u_conv_kop(9)proc_int_u2k_conv_uop(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)
xoxo π source/version: ./kernel, date: October 2026, manual page: proc_int_conv(9) β 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