This update makes this driver more than just an example and allows for:
o More than one pin to be attached to a gpioirq instance. That is,
the mask parameter can be greater than 0x01 now.
o A /dev/gpioirqN device that allows GPIO pin interrupts to be
transported into userland. This is a device that can be opened for
reading with a simple fixed output indicating the device unit, pin
number and current pin state.
This update was used as part of a physical intrusion detection system
where multiple switches (i.e. window magnetic reed switches and etc.)
are tied to a bunch of GPIO inputs with userland software that reacts
to the pins changing state.
Pull request: https://github.com/maleic1618/NetBSD/pull/1:
"""
This PR fixes some bugs and MP-ifies ena(4), including RSS.
On t3.small instance, its forward throughput has grown as followings:
64 bytes 256 bytes
-current 1flow 21.58 110.51
-current 8flow 28.27 123.19
patched 1flow 37.20 142.21
patched 8flow 92.26 366.85
(Unit: Mbps, NET_MPSAFE enabled, Using https://github.com/iij/ipgen)
It also worked well on a aarch64 machine.
Addendum: I forgot to mention that this PR is reviewed ozaki-r@n.o.
"""
Code contributed by KUSABA Takeshi <t-kusaba@iij.ad.jp>
Reviewed also by ozaki-r@n.o