rpmb_dev_register(9)
π NAME π
rpmb_dev_register β bestie, this is the one that registers an RPMB partition with the RPMB subsystem β¨
(oh and hi, you're in the Kernel API Manual, section 9, welcome π«Ά)
π SYNOPSIS π
struct rpmb_dev * rpmb_dev_register (struct device *dev , struct rpmb_descr *descr );
πΈ ARGUMENTS πΈ
devβ the storage device of the rpmb device, like that's its whole thing πdescrβ the RPMB device description, aka the lil info packet about the device π
π¦ DESCRIPTION π¦
okay so the vibe here is: while you're registering the RPMB partition, you extract the device information you need while the resources you need are actually available. that's it, that's the whole deal β¨ lowkey iconic that it's this short ngl π
β RETURN β
you get back a pointer to a struct rpmb_dev π₯³ β or an ERR_PTR if it failed π (so yes, always check it, no cap, ERR_PTR is the "it did not slay" signal π)
π SEE ALSO π
- Kernel file
./drivers/misc/rpmb-core.c(the main character file fr fr π) rpmb_dev_get(9)rpmb_dev_put(9)rpmb_route_frames(9)rpmb_dev_find_device(9)rpmb_dev_unregister(9)
go read those too, iykyk β the whole little RPMB friend group lives in there π§
and that's the page!! π it's from ./drivers/misc, the October 2026 edition β mwah, go register something and slay πβ¨
π¦ 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