STRUCT CROSSBAR_DEVICE(9)
π 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β araw_spinlock_tthat serializes access toirq_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 π¦
- the Kernel file
./drivers/irqchip/irq-crossbar.c crossbar_domain_free(9)
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
- 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