dprc_set_irq_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dprc_set_irq_mask β€” a Kernel API Manual moment

okay so bestie, welcome to the dprc_set_irq_mask(9) page from the Kernel API Manual. this one is short and sweet and it's giving "quietly important" fr fr πŸŽ€


✨ NAME ✨

dprc_set_irq_mask β€” set the interrupt mask. that's it. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

int dprc_set_irq_mask (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , u8 irq_index , u32 mask );

like, exactly that, no notes, copy it character for character or the compiler will simply end you 😭


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mc_io β€” pointer to the MC portal's I/O object. yes it's an I/O object, yes it's a pointer, we love a pointer 🫢
  • cmd_flags β€” command flags; one or more of 'MC_CMD_FLAG_'. plural, so you can stack your little flags, go off πŸ‘‘
  • token β€” the token of the DPRC object. it's a u16. it's the token. iykyk πŸ”₯
  • irq_index β€” the interrupt index you're configuring. of type u8, so keep it smol ✨
  • mask β€” the event mask that triggers the interrupt. each bit means:
    • 0 = ignore event
    • 1 = consider event for asserting irq

so like, bit on = we care, bit off = we literally don't πŸ™ˆ


πŸ’– DESCRIPTION πŸ’–

every interrupt can have up to 32 causes, and the interrupt model supports masking/unmasking each cause independently. so you can be picky. you can be selective. you can let exactly the causes you want through and ghost the rest πŸ’€βœ¨


⭐ RETURN ⭐

the RETURN section is, and i say this with love, empty. there is literally nothing here in the source, so i'm not gonna make something up, bestie β€” no cap, i refuse to invent return values 🌈


πŸŽ€ SEE ALSO πŸŽ€

  • kernel file ./drivers/bus/fsl-mc/dprc.c β€” the actual source, go read it, it's iconic πŸ‘‘

and the whole friend group:


lowkey reminder: mask is a bitmask, so 0 = ignore and 1 = consider for asserting irq. don't flip your bits by accident bestie, that's a main character mistake 🧚

okay bye, this page came from ./drivers/bus/fsl-mc, dated October 2026, and it is literally titled dprc_set_irq_mask(9) β€” slay, ate, periodt πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from