add_uevent_var(9)
β¨ add_uevent_var β¨
okay so bestie, we're in the Kernel API Manual (section 9, the kernel-functions era π«Ά) and today's main character is add_uevent_var β she literally just adds a key=value string into the environment buffer π
πΈ NAME πΈ
add_uevent_var β add key value string to the environment buffer β¨
π SYNOPSIS π
int add_uevent_var (struct kobj_uevent_env *env , const char *format ,
... );
like, that's the whole vibe. three-ish things in, one int out. periodt. π
π¦ ARGUMENTS π¦
envβ the environment buffer structure, aka the little container she's gonna scoot the string into π§Ίformatβ theprintfformat for thekey=valuepair, so yes she takes format strings like the icon she is π...β the variable arguments, aka whatever the format is hungry for π
π DESCRIPTION π
okay so the whole deal, no cap: she returns 0 if the environment variable was added successfully, or -ENOMEM if no space was available π that's it, that's the entire personality. lowkey iconic for how hard she works for such a short description.
ngl bestie, if you see -ENOMEM come back, that's the "no space was available" situation β not a you problem, just a full-buffer problem π
π SEE ALSO π
- Kernel file
./lib/kobject_uevent.c kobject_synth_uevent(9)kobject_uevent_env(9)kobject_uevent(9)
like the whole uevent friend group, fr fr β go say hi to all of them π
and that's the page!! mwah π this one came from ./lib and it's dated October 2026, and yes the header and footer both say add_uevent_var(9) because consistency is also iconic β¨π¦π
π¦ 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