auxiliary_de...ysfs_irq_add(9)
β¨ auxiliary_de...ysfs_irq_add(9) β¨
okay bestie, this one comes straight from the Kernel API Manual π. The main character is auxiliary_device_sysfs_irq_add, and her whole job is adding a sysfs entry for the IRQ you hand her. slay.
πΈ NAME πΈ
auxiliary_device_sysfs_irq_add β add a sysfs entry for the given IRQ. periodt.
π SYNOPSIS π
int auxiliary_device_sysfs_irq_add (struct auxiliary_device *auxdev ,
int irq );
π¦ ARGUMENTS π¦
auxdevβ the auxiliary bus device where we're adding the sysfs entry. that's her πirqβ the associated interrupt number. yep, the IRQ in question β¨
π DESCRIPTION π
okay so here's the tea: call this function after the auxiliary device has successfully received the IRQ. no cap.
The driver is responsible for adding a unique IRQ for the auxiliary device. that part is literally on the driver π«Ά
The driver can invoke this function from multiple thread contexts safely for unique IRQs of auxiliary devices. so multithreaded besties can do their thing β as long as the IRQs are unique π
π¨ but the driver must not invoke this API multiple times if the IRQ was already added previously. that is not the vibe. please do not do that, bestie π
π RETURN π
zero on success, or an error code on failure. that's the return vibe check π
π SEE ALSO π
- Kernel file
./drivers/base/auxiliary_sysfs.c auxiliary_device_sysfs_irq_remove(9)
mwah π this page lives under ./drivers/base, dated October 2026, and it's all about auxiliary_de...ysfs_irq_add(9). bye bestie, go add those sysfs IRQ entries responsibly πβ¨
π¦ 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