STRUCT MHUV2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

struct mhuv2 β€” the MHUv2 mailbox controller data bestie, like literally the struct that holds all the deets πŸ’…

ok so this page lives in the Kernel API Manual, section 9 (iykyk, that's the kernel API girlies) ✨


✨ SYNOPSIS ✨

Here's the whole vibe, every single line, no cap:

struct mhuv2 {
    struct mbox_controller mbox;
    union {
      struct mhu2_send_frame_reg __iomem *send;
      struct mhu2_recv_frame_reg __iomem *recv;
    };
    enum mhuv2_frame frame;
    unsigned int irq;
    unsigned int windows;
    unsigned int minor;
    unsigned int length;
    u32 *protocols;
    spinlock_t doorbell_pending_lock;
 };

πŸŽ€ Members πŸŽ€

ok so now let's go through every member one by one, because they all matter and we're not skipping a single one 🫢

  • mbox β€” the mailbox controller that belongs to the MHU frame. it's giving main character energy tbh πŸ‘‘
  • {unnamed_union} β€” an anonymous union. yeah she has no name. mysterious. iconic. πŸ’œ
  • send β€” base address of the register mapping region πŸ”₯
  • recv β€” also the base address of the register mapping region. (yes, same description as send β€” they live in that same anonymous union, so it's one address, two looks 😭)
  • frame β€” the frame type, and it's either RECEIVER_FRAME or SENDER_FRAME β€” pick your fighter πŸ¦‹
  • irq β€” the interrupt. that's it. that's the whole member. ⭐
  • windows β€” the channel windows that the platform implements πŸͺŸβœ¨
  • minor β€” minor version of the controller, little baby version number πŸ“
  • length β€” length of the protocols array, measured in bytes πŸ“
  • protocols β€” raw protocol information, derived from the device tree 🌈
  • doorbell_pending_lock β€” a spinlock that is required for correct operation of the Tx interrupt for doorbells. not optional, bestie, don't be out here removing it πŸ’€

🌸 SEE ALSO 🌸

  • the kernel file ./drivers/mailbox/arm_mhuv2.c πŸ‘€
  • struct mhuv2_protocol_ops(9) β€” go read her next, she's the sequel πŸ’–

and that's the whole page!! mwah πŸ’‹ this one came from ./drivers/mailbox, dated October 2026 β€” slay, go read the source, ily, bye πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from