dankamongmen / libnetstack

Small library around rtnetlink to track networking stack elements
https://nick-black.com/dankwiki/index.php/Libnetstack
Apache License 2.0
10 stars 0 forks source link

support queries for a device's interrupts #51

Closed dankamongmen closed 1 year ago

dankamongmen commented 1 year ago

we ought export interrupts of devices via the API. MSI numbers can be found via /sys/class/net/DEVNAME/device/msi_irqs; this directory contains a file for each MSI interrupt. not all network devices have a device link (lo does not, for example). mapping the various MSI interrupts to their device roles seems to require arbitrary parsing of /proc/interrupts as far as i can tell =[.