sdca_irq_request(9)
π sdca_irq_request(9) β like, the kernel API manual bestie β¨
okay so first things first: this is a page from the Kernel API Manual (section 9, the function one, iykyk) and the star of the show is sdca_irq_request. yes it's a lot of letters. no we're not scared of it. π
πΈ NAME πΈ
sdca_irq_request β request an individual SDCA interrupt π¦
like, one (1) single interrupt. not the whole squad. very main character energy.
β¨ SYNOPSIS β¨
int sdca_irq_request (struct device *dev , struct sdca_interrupt_info
*info , int sdca_irq , const char *name , irq_handler_t handler , void
*data );
six arguments, one int coming back at you. slay. π₯
π«Ά ARGUMENTS π«Ά
devβ Pointer to thestruct deviceagainst which things should be allocated. it's giving "whose tab is this going on" π³infoβ Pointer to the interrupt information structure. the lore container, basically. πsdca_irqβ SDCA interrupt position. literally just which one, bestie. πnameβ Name to be given to the IRQ. gotta name it, it's basically a pet π£handlerβ A callback thread function to be called for the IRQ. the "when this happens, do this" function π«dataβ Private data pointer that will be passed to the handler. lil bag of stuff that comes along for the ride π
π DESCRIPTION π
sooo typically this whole thing is handled internally by sdca_irq_populate β like, it's got it, don't worry, it's fine, it's handled π
however (and this is the part that matters π), if a device requires custom IRQ handling, you can call this manually before calling sdca_irq_populate. and then when sdca_irq_populate runs, it will skip that IRQ whilst processing. you already did it, so it's like... been there, done that, not touching it. periodt. π
β RETURN β
Zero on success π and a negative error code on failure π. that's it. that's the return value. classic kernel.
π SEE ALSO π
Kernel file ./sound/soc/sdca/sdca_interrupts.c, plus the whole friend group of related functions:
sdca_irq_free(9)sdca_irq_data_populate(9)sdca_irq_populate_early(9)sdca_irq_populate(9)sdca_irq_cleanup(9)sdca_irq_cleanup_late(9)devm_sdca_irq_allocate(9)sdca_irq_enable_early(9)sdca_irq_enable(9)sdca_irq_disable(9)
that's the whole page, bestie, no cap π
ngl this one's short and sweet β read it, use it, request exactly one (1) interrupt, go touch grass π
kisses, this came out of ./sound/soc/sdca and the version stamp says October 2026 β so like, from the future?? we stan a timeless icon π§π
π¦ 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