devm_platfo...rqs_affinity(9)
π devm_platform_get_irqs_affinity(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one is all about devm_platform_get_irqs_affinity, and no cap, it's a little baddie that gets you a whole set of IRQs for a device using an interrupt affinity descriptor. let's get into it π
πΈ NAME πΈ
devm_platform_get_irqs_affinity β the devm method that grabs you a set of IRQs for a device using an interrupt affinity descriptor. literally that's the whole vibe π¦
β¨ SYNOPSIS β¨
int devm_platform_get_irqs_affinity (struct platform_device *dev ,
struct irq_affinity *affd , unsigned int minvec , unsigned int maxvec ,
int **irqs );
like, that's the whole signature bestie, copy it exactly or the compiler will absolutely read you π
π«Ά ARGUMENTS π«Ά
devβ platform device pointer. the main character, the device in question πaffdβ affinity descriptor. this is the blueprint for how the IRQ affinity gets set up πminvecβ minimum count of interrupt vectors. the floor, the bare minimum, the "at least this many" πmaxvecβ maximum count of interrupt vectors. the ceiling, the "no more than this" βirqsβ pointer holder for IRQ numbers. you hand it a spot and it puts the IRQ numbers there π
π DESCRIPTION π
so what does it actually do? it gets a set of IRQs for a platform device, and then it updates the IRQ affinity according to the affinity descriptor you passed in. that's it, that's the whole flex π₯
(also ngl, the original source spells it "afffinty" with three fs β iconic typo behavior, but the meaning is 100% "affinity", don't come for me π)
π RETURN π
- number of vectors on success β slay
- a negative error number on failure π not slay
π§ SEE ALSO π§
everything else in the kernel family, bestie β go read these if you're obsessed like me:
Kernel file ./drivers/base/platform.c
platform_get_resource(9)devm_platform_get_and_ioremap_resource(9)devm_platform_ioremap_resource(9)devm_platform_ioremap_resource_byname(9)platform_get_irq_affinity(9)platform_get_irq_optional(9)platform_get_irq(9)platform_irq_count(9)platform_get_resource_byname(9)platform_get_irq_byname(9)platform_get_irq_byname_optional(9)platform_add_devices(9)platform_device_put(9)platform_device_alloc(9)platform_device_add_resources(9)platform_device_add_data(9)platform_device_set_of_node(9)platform_device_set_fwnode(9)platform_device_set_of_node_from_dev(9)platform_device_add(9)platform_device_del(9)platform_device_register(9)platform_device_unregister(9)platform_device_register_full(9)__platform_driver_register(9)platform_driver_unregister(9)__platform_driver_probe(9)__platform_create_bundle(9)__platform_register_drivers(9)platform_unregister_drivers(9)platform_match(9)platform_find_device_by_driver(9)
and that's the whole page bestie, mwah π this little icon came from ./drivers/base, dated October 2026 β see you in the next manpage, love u bye ππβ¨
π¦ 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