rpmb_dev_unregister(9)
π rpmb_dev_unregister β the Kernel API Manual, bestie edition
okay so real talk, this little page lives in the Kernel API Manual (section 9, the fancy "kernel developer" section, iykyk) and it's all about one function: rpmb_dev_unregister. That's the name. That's the whole vibe. It unregisters an RPMB partition from the RPMB subsystem. Clean, simple, iconic. β¨
π SYNOPSIS π
int rpmb_dev_unregister (struct rpmb_dev *rdev );
literally just that. one arg, one int back. no cap. π«Ά
πΈ ARGUMENTS πΈ
rdevβ the rpmb device you're unregistering. that's it, that's the whole parameter. give it the device, it gives it the boot. π
π¦ DESCRIPTION π¦
okay so here's the tea β β this function should be called from the release function of the underlying device that was used back when the RPMB device got registered. like, that's the moment. that's the assignment. the underlying device is being released, so you send the RPMB device off too. matched set, periodt. π
not "whenever you feel like it" β the manpage is very clear it's the release function of the underlying device. follow the choreography bestie. π§
β RETURN β
< 0 on failure. (yes, that's the whole return section. she's brief. she's booked. π
)
heads up π¨: the doc says< 0on failure, so anything0or above is not a failure by that definition. don't go inventing extra return meanings, that's not what's written here π
π SEE ALSO π
Kernel file ./drivers/misc/rpmb-core.c β that's where the actual code lives, go snoop π
like, the whole RPMB friend group honestly ππ
and that's the page!! source path ./drivers/misc, dated October 2026, answering to the name rpmb_dev_unregister(9) like the main character she is. slay, go unregister responsibly πβ¨π
π¦ 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