STRUCT CROSSBAR_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct crossbar_device(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for struct crossbar_device, and yes it's exactly what it sounds like: the little description struct for a crossbar device. no cap, it's giving "small struct, huge responsibility." πŸŽ€


🌸 NAME 🌸

struct crossbar_device β€” crossbar device description πŸ’–

like… literally the description of a crossbar device. that's the vibe. πŸ¦‹


✨ SYNOPSIS ✨

struct crossbar_device {
    raw_spinlock_t lock;
    uint int_max;
    uint safe_map;
    uint max_crossbar_sources;
    uint *irq_map;
    void __iomem *crossbar_base;
    int *register_offsets;
    void (*write)(int, int);
 };

look at her. iconic. every field explained below, don't skip a single one πŸ‘‘πŸ«Ά


🧚 Members 🧚

  • lock β€” a raw_spinlock_t that serializes access to irq_map. it's the bouncer at the club, keeping everybody from grabbing the map at the same time πŸ”₯
  • int_max β€” the maximum number of supported interrupts. the ceiling. the limit. the "you shall not pass" number πŸ’€
  • safe_map β€” a safe default value used to initialize the crossbar. like the factory settings but for irqs, lowkey comforting 🌸
  • max_crossbar_sources β€” the Maximum number of crossbar sources. yes that capital M is in the original, we respect it, plural sources, many of them ⭐
  • irq_map β€” array of interrupts to crossbar number mapping. the whole matchmaking service, fr fr πŸ’–
  • crossbar_base β€” the crossbar base address. the home base, the main character address of the whole thing 🏠
  • register_offsets β€” offsets for each irq number. every irq gets its own lil address offset, personalized, thoughtful, slay ✨
  • write β€” register write function pointer. it's a function pointer, and it writes registers. void (*write)(int, int); β€” two ints, no return, periodt πŸŽ€

πŸ¦‹ SEE ALSO πŸ¦‹

go read them, iykyk πŸ‘€πŸ’œ


ngl bestie, the details above are the whole page β€” every field, every type, every uint, every pointer. no facts were harmed, only decorated πŸ’…

and that's a wrap, babe! 🌈 this page lives in ./drivers/irqchip and it's dated October 2026 β€” so like, future energy only. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from