STRUCT STI_MBOX_DEVICE(9)
π 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 theenabledstatus, 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
- 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