STRUCT MBOX_CONTROLLER(9)
π NAME π
struct mbox_controller β Controller of a class of communication channels. Okay bestie, welcome to the mbox_controller(9) page in the Kernel API Manual β this is the struct that runs the whole communication-channel controller vibe. β¨
π SYNOPSIS π
struct mbox_controller {
struct device *dev;
const struct mbox_chan_ops *ops;
struct mbox_chan *chans;
int num_chans;
bool txdone_irq;
bool txdone_poll;
unsigned txpoll_period;
struct mbox_chan *(*fw_xlate)(struct mbox_controller *mbox, const
struct fwnode_reference_args *sp);
struct mbox_chan *(*of_xlate)(struct mbox_controller *mbox, const
struct of_phandle_args *sp);
struct hrtimer poll_hrt;
spinlock_t poll_hrt_lock;
struct list_head node;
};
πΈ Members πΈ
devβ Device backing this controller. Required. No skips, bestie.opsβ Operators that work on each communication chan. Required. This is the ops crew.chansβ Array of channels. Required. The whole lineup.num_chansβ Number of channels in thechansarray. Required. Count them, donβt guess.txdone_irqβ Indicates if the controller can report to the API when the last transmitted data was read by the remote. e.g. if it has some TX ACK irq. πtxdone_pollβ If the controller can read but not report the TX done. Ex, some register shows the TX status but no interrupt rises. Ignored iftxdone_irqis set. π¨txpoll_periodβ Iftxdone_pollis in effect, the API polls for last TXβs status after these many millisecs. β±οΈfw_xlateβ Controller driver specific mapping of channel via fwnode. π§of_xlateβ Controller driver specific mapping of channel via DT. π¦poll_hrtβ API private. hrtimer used to poll for TXDONE on all channels. π€«poll_hrt_lockβ API private. Lock protecting access topoll_hrt. πnodeβ API private. To hook into list of controllers. πͺ
π SEE ALSO π
- Kernel file
./include/linux/mailbox_controller.hstructmbox_chan_ops(9), structmbox_chan(9)
Okay bye bestie! This little page is from ./include/linux, dated October 2026, and itβs struct mbox_controller(9) β mwah, slay, and happy hacking πβ¨
π¦ 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