proc_put_long(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– proc_put_long(9) β€” or, the little kernel helper that turns your integer into decimal ASCII ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ and today's main character is proc_put_long β€” genuinely one of those tiny functions that does one (1) thing and does it slayfully πŸ’…


🌸 NAME 🌸

proc_put_long β€” converts an integer to a decimal ASCII formatted string ✨ (yes, that's literally the whole job, and it ate πŸ”₯)


πŸ¦‹ SYNOPSIS πŸ¦‹

void proc_put_long (void **buf , size_t *size , unsigned long val , bool neg );

like… look at that signature. four args, zero drama, void return because it doesn't need to brag 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • buf β€” the user buffer πŸ’– (the place where the pretty decimal ASCII string ends up)
  • size β€” the size of the user buffer 🌸 (the vibe check on how much room we've got)
  • val β€” the integer to be converted πŸ‘‘ (the number that's getting its glow-up into decimal ASCII)
  • neg β€” sign of the number, TRUE for negative 🌈 (so we know whether to bring the minus sign energy)

✨ DESCRIPTION ✨

In case of success buf and size are updated with the amount of bytes written πŸ’«

that's it, that's the whole description, and honestly? iconic. lowkey refreshing after reading a manpage with 40 options ngl 😭

fr fr bestie: it says "in case of success" β€” so like, don't assume the pointers got moved unless it actually worked, okay? 🫢

πŸ’œ SEE ALSO πŸ’œ

the whole fam, gathered for the group chat πŸ“±πŸ’… β€” every single one of these:


okay that's the whole page, go read the sysctl syscall doc bestie, it's giving prerequisite energy πŸ’€βœ¨

signed, sealed, delivered by the ./kernel crew β€” October 2026 edition 🌸🫢

πŸ“¦ where this page comes from