nvram_create_partition(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 cute
  • sig β€” 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: 0 means req_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 a min_size that's smaller than req_size, then you're on your own for the real size β€” you gotta query for the actual size yourself after the call, using nvram_partition_get_size 🫢 don't forget, i'm begging 😭

🌈 SEE ALSO 🌈

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