STRUCT STI_MBOX_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ struct sti_mbox_device(9) β€” the STi Mailbox device data glow-up

okay so bestie, we're in the Kernel API Manual today and this is the page for struct sti_mbox_device β€” it's literally the STi Mailbox device data and it's kind of iconic ngl πŸŽ€


✨ NAME ✨

struct sti_mbox_device β€” STi Mailbox device data. that's it, that's the vibe πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct sti_mbox_device {
    struct device           *dev;
    struct mbox_controller  *mbox;
    void __iomem            *base;
    const char              *name;
    u32 enabled[STI_MBOX_INST_MAX];
    spinlock_t lock;
 };

like, that's the whole thing. she's compact, she's structured, she ate πŸ”₯


🌸 Members 🌸

okay let's go through the members one by one, no skipping, we don't do that here 🫢

  • dev β€” the Device to which it is attached. her home base fr fr.
  • mbox β€” Representation of a communication channel controller. the whole controller vibe πŸ‘‘
  • base β€” Base address of the register mapping region. where the registers actually live, lowkey important.
  • name β€” Name of the mailbox. she has a name, obviously πŸ’–
  • enabled β€” Local copy of enabled channels. a little local record of who's enabled ✨
  • lock β€” Mutex protecting enabled status. guards the enabled status, do not skip the locking bestie 😭

πŸ’œ Description πŸ’œ

so, the lore: an IP Mailbox is currently composed of 4 instances. Each instance is currently composed of 32 channels. This means that we have 128 channels per Mailbox β€” yes, the math is mathing, 4 Γ— 32 = 128, periodt πŸ’…

and a channel can be used for TX or RX. pick your fighter πŸ¦‹


🌈 SEE ALSO 🌈

go read these next, iykyk:

  • Kernel file ./drivers/mailbox/mailbox-sti.c
  • struct sti_mbox_pdata(9)
  • struct sti_channel(9)

not me getting emotional over a mailbox driver πŸ₯Ή go forth and read the source, bestie, you've got this πŸ’ͺ

and that's the page!! sign-off time: this lives under ./drivers/mailbox and the date on it is October 2026 ⭐ catch you in the kernel, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from