STRUCT HI3660_MBOX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct hi3660_mbox β€” the Hi3660 mailbox controller data, aka the little struct that holds the whole controller together πŸŽ€

This is your friendly neighborhood page from the Kernel API Manual, bestie β€” yes, the kernel has its own manual and yes it's iconic ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct hi3660_mbox {
    struct device *dev;
    void __iomem *base;
    struct mbox_chan chan[MBOX_CHAN_MAX];
    struct hi3660_chan_info mchan[MBOX_CHAN_MAX];
    struct mbox_controller controller;
 };

Like, that's the whole vibe right there β€” five fields, no cap, copy it exactly πŸ’…


🌸 Members 🌸

  • dev β€” the device this whole thing is attached to. It's giving "who do I belong to" energy 🫢
  • base β€” the base address of the register mapping region. The coordinates of the mailbox's whole situation, fr fr ⭐
  • chan β€” representation of the channels in the mailbox controller. An array of struct mbox_chan, sized MBOX_CHAN_MAX β€” one seat per channel, periodt πŸŽ€
  • mchan β€” representation of the channel info. An array of struct hi3660_chan_info, also sized MBOX_CHAN_MAX. The lore behind each channel πŸ”₯
  • controller β€” representation of a communication channel controller. This is the main character β€” the struct mbox_controller holding it all down πŸ‘‘

✨ DESCRIPTION ✨

Okay so boom: the mailbox controller includes 32 channels and can allocate a channel for message transferring πŸ’Œ

That's literally it, that's the whole job β€” 32 channels, allocate one, move your messages, slay πŸ’…


πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./drivers/mailbox/hi3660-mailbox.c β€” go read the source, iykyk 🧚
  • struct hi3660_chan_info(9) β€” the per-channel info struct, the sequel you need to read next πŸ’œ

ngl bestie, if you're touching this struct you should probably go read hi3660_chan_info too β€” they're literally a package deal πŸ™ˆ

That's the page! Source lives in ./drivers/mailbox, dated October 2026 β€” tysm for reading, ily, go forth and transfer messages πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from