STRUCT MBOX_CHAN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct mbox_chan(9)

okay bestie, welcome to the Kernel API Manual page for struct mbox_chan β€” the s/w side of a communication chan, and it is literally giving kernel-core cutie energy. πŸŽ€ This struct is the kernel API's whole vibe for representing a communication channel, and we are gonna roll call every single member. no cap. ✨


🌸 NAME 🌸

struct mbox_chan β€” s/w representation of a communication chan πŸ’–


✨ SYNOPSIS ✨

       struct mbox_chan {
           struct mbox_controller *mbox;
           unsigned txdone_method;
           struct mbox_client *cl;
           struct completion tx_complete;
           int tx_status;
           void *active_req;
           unsigned msg_count, msg_free;
           void *msg_data[MBOX_TX_QUEUE_LEN];
           spinlock_t lock;
           void *con_priv;
        };

πŸŽ€ Members πŸŽ€

okay so this struct is lowkey a whole lineup of fields, and every one has a job. let's go, bestie:

  • mbox β€” Pointer to the parent/provider of this channel. Like, who owns this chan? this pointer knows. πŸ‘‘
  • txdone_method β€” Way to detect TXDone chosen by the API. That's the API's chosen TXDone-detection method. πŸ”₯
  • cl β€” Pointer to the current owner of this channel. The current main character, basically. πŸ’…
  • tx_complete β€” Transmission completion. The transmission-completion field, periodt. ✨
  • tx_status β€” Transmission status. The receipts on the transmission. 🧾
  • active_req β€” Currently active request hook. The request hook that's active right now. πŸ¦‹
  • msg_count β€” No. of mssg currently queued. Count 'em, bestie. πŸ“
  • msg_free β€” Index of next available mssg slot. The next free mssg slot index. πŸŽ€
  • msg_data β€” Hook for data packet. Data packet hook, slay. πŸ’œ
  • lock β€” Serialise access to the channel. Keeps access to the channel serialised. πŸ”’
  • con_priv β€” Hook for controller driver to attach private data. Controller driver's private-data hook. πŸ™ˆ

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/mailbox_controller.h struct
  • mbox_chan_ops(9), struct mbox_controller(9)

🫢 that's the whole struct, bestie. source/version path: ./include/linux; date: October 2026 β€” struct mbox_chan(9) signing off! periodt. πŸ’…

πŸ“¦ where this page comes from