STRUCT MCB_BUS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct mcb_bus(9) β€” like, the whole entire vibe

okay so bestie, welcome to struct mcb_bus, straight out of the Kernel API Manual (struct mcb_bus(9), if you're keeping receipts πŸ“). It's MEN Chameleon Bus and it's lowkey iconic. Let's get into it πŸŽ€


✨ NAME ✨

struct mcb_bus β€” MEN Chameleon Bus. that's it, that's the whole name, she's concise and she ate πŸ’…


🌸 SYNOPSIS 🌸

here's the queen herself, character for character, no notes:

struct mcb_bus {
    struct device dev;
    struct device *carrier;
    int bus_nr;
    u8 revision;
    char model;
    u8 minor;
    char name[CHAMELEON_FILENAME_LEN + 1];
    int (*get_irq)(struct mcb_device *dev);
 };

πŸ¦‹ Members πŸ¦‹

  • dev β€” the bus device. yes bestie, it's a struct device, she's just living her life in there 🫢
  • carrier β€” a pointer to the carrier device (it's a struct device *, so like, handle with care ✨)
  • bus_nr β€” the mcb bus number, an int, in case you were wondering which bus. it's this one πŸ’€
  • revision β€” the FPGA's revision number, a u8 β€” the FPGA said "this is my era" πŸ‘‘
  • model β€” the FPGA's model number, a char β€” main character energy fr fr
  • get_irq β€” the callback to get the IRQ number. signature is int (*get_irq)(struct mcb_device *dev), so it takes a struct mcb_device * and hands you back an int, slay 🌈
ngl bestie, minor is right there in the struct β€” u8 minor; β€” but the Members list doesn't say a single word about her. mysterious. we simply don't know. πŸ™ˆ (i'm not gonna make something up, that's not the move.)

πŸ’– SEE ALSO πŸ’–

  • Kernel file ./include/linux/mcb.h
  • struct mcb_device(9)
  • struct mcb_driver(9)

go read those, they're the friend group 🧚


and that's the page!! πŸ“ cute lil sign-off: this one lives in ./include/linux and it's dated October 2026 β€” yes, the future, she's ahead of her time ⭐ mwah πŸ’œ

πŸ“¦ where this page comes from