STRUCT D40_INTERRUPT_LOOKUP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct d40_interrupt_lookup(9) β€” like, the Kernel API Manual era πŸŽ€

okay bestie, so this is a page from the Kernel API Manual and it's literally about struct d40_interrupt_lookup β€” the lookup table for an interrupt handler. yes, THE lookup table. she's the one holding the little map so the interrupt handler knows where to go. main character energy fr fr ✨


🌸 NAME 🌸

struct d40_interrupt_lookup β€” lookup table for interrupt handler πŸ’–

Like, that's her whole job. She's a lookup table. For an interrupt handler. Iconic, honestly.


✨ SYNOPSIS ✨

struct d40_interrupt_lookup {
    u32 src;
    u32 clr;
    bool is_error;
    int offset;
 };

not me putting the whole struct in here exactly as it is, because bestie, we do NOT paraphrase code πŸ’… copy it character for character or don't copy it at all, that's the rule.


πŸ¦‹ Members πŸ¦‹

okay so here's the breakdown of every single field, no skipping, we don't do that here 🫢

  • src β€” the Interrupt mask register. that's it, that's the vibe. she's the mask register and she's serving πŸŽ€
  • clr β€” the Interrupt clear register. the one you hit when you wanna clear things out. very "new phone who dis" of her 😭
  • is_error β€” true if this is an error interrupt. so if it's an error, she's true; that's the whole check, no cap πŸ’€
  • offset β€” the start delta in the lookup_log_chans in d40_base. ⭐ and listen, this part matters: if it equals D40_PHY_CHAN, then the lookup_phy_chans shall be used instead. like, that's the switch-up. remember it. iykyk πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

go read these too bestie, they're all part of the same friend group 🌈

  • the Kernel file ./drivers/dma/ste_dma40.c
  • struct stedma40_platform_data(9)
  • enum d40_command(9)
  • struct d40_reg_val(9)
  • struct d40_lli_pool(9)
  • struct d40_desc(9)
  • struct d40_lcla_pool(9)
  • struct d40_phy_res(9)
  • struct d40_chan(9)
  • struct d40_gen_dmac(9)
  • struct d40_base(9)

lowkey a whole reading list, but that's just how the kernel rolls πŸ“

okay that's the whole page, go be amazing with your interrupts πŸ’œ

sign-off time, cutest version: this one lives under ./drivers/dma, dated October 2026, and she'll forever be known as struct d40_interrupt_lookup(9) πŸ§šβ€β™€οΈπŸŽ€βœ¨

πŸ“¦ where this page comes from