nvram_create_partition(9)
π nvram_create_partition(9) β the kernel API manual, but make it cute
okay so bestie, welcome to section 9 of the kernel API manual β this is nvram_create_partition, and yes she's a real one β¨
πΈ NAME πΈ
nvram_create_partition β literally just create a partition in nvram π that's it, that's the gig, no cap
π¦ SYNOPSIS π¦
loff_t nvram_create_partition (const char *name , int sig , int req_size
, int min_size );
likeβ¦ four args, one return type, and a whole lot of nvram potential π
β¨ ARGUMENTS β¨
nameβ the name of the partition you're creating π·οΈ pick something cutesigβ the signature of the partition you're creating πreq_sizeβ how much data you wanna allocate, in bytes πmin_sizeβ the minimum acceptable sizeβ¦ and heads up:0meansreq_sizeπ (yes that's a little shortcut, she's generous)
π§ DESCRIPTION π§
so here's the vibe check π this function returns either a negative error code, or a positive nvram index pointing at the beginning of the data area of the partition you just made. main character energy either way π
β οΈ okay this part matters, bestie: if you passed amin_sizethat's smaller thanreq_size, then you're on your own for the real size β you gotta query for the actual size yourself after the call, usingnvram_partition_get_sizeπ«Ά don't forget, i'm begging π
π SEE ALSO π
- the kernel file
./arch/powerpc/kernel/nvram_64.cπ (yes, the source is right there, go look, iykyk) nvram_pstore_write(9)nvram_remove_partition(9)nvram_get_partition_size(9)nvram_find_partition(9)
like a little nvram friend group fr fr ππ¦
and that's the whole page, bestie β brought to you by . /arch/powerpc/kernel and dated October 2026 π slay, go make some partitions πβ¨
π¦ 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