STRUCT RPMB_DESCR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct rpmb_descr(9) πŸŽ€

okay so bestie, we're deep in the Kernel API Manual today and this one is a struct, not a command β€” it's literally the glow-up breakdown of an RPMB description handed to you by the underlying block device. no cap, she's giving "here's everything you need to know about me" energy πŸ’…


✨ NAME ✨

struct rpmb_descr β€” the RPMB description that the underlying block device provides 🫢


🌸 SYNOPSIS 🌸

struct rpmb_descr {
    enum rpmb_type type;
    int (*route_frames)(struct device *dev, u8 *req, unsigned int
req_len, u8 *resp, unsigned int resp_len);
    u8 *dev_id;
    size_t dev_id_len;
    u16 reliable_wr_count;
    u16 capacity;
 };

like, that's the whole vibe of the struct right there ⭐


πŸ¦‹ Members πŸ¦‹

  • type β€” the block device type, iconic little enum telling you what kind of device we're dealing with πŸ’–
  • route_frames β€” a function pointer that routes frames to and from the RPMB device. she's the main character of the transport layer fr fr πŸ”₯
  • dev_id β€” the unique device identifier, read straight off the hardware. very "fingerprint but make it silicon" πŸ’€
  • dev_id_len β€” the length of that unique device identifier, because we gotta know how much of it there is 😌
  • reliable_wr_count β€” the number of sectors that can be written in one access. write smart, not hard ✨
  • capacity β€” the capacity of the device, measured in units of 128K. yes, that's the unit. no, I didn't make it up πŸ™ˆ

πŸ’œ Description πŸ’œ

so here's the tea: dev_id is intended to be used as input when deriving the authenticaion key. that's it, that's the little lore drop πŸ‘‘


🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/rpmb.h
  • enum rpmb_type(9)
  • struct rpmb_dev(9)
  • struct rpmb_frame(9)

go read those next bestie, iykyk πŸ“šπŸ’«


lowkey a whole struct in one tiny manpage and every single member ate. no notes πŸ“

and that's a wrap, babe πŸ§šπŸ’– this page lives in ./include/linux, brought to you by the October 2026 edition of struct rpmb_descr(9) β€” go forth and derive those keys, queen πŸ‘‘βœ¨

πŸ“¦ where this page comes from