Discussion:
kqueue(2) EVFILT_DEVICE inquiry
e***@0x1bi.net
2021-04-17 14:35:27 UTC
Permalink
Hello, Misc;

I've been playing around with the kqueue(2) syscall and have a question about
the EVFILT_DEVICE filter; what does the the descriptor in the identifier refer
to? I've tried opening device files in /dev/ however upon invoking kqueue it
returns immediately with 0 in fflgas.

I noticed in the release notes for 6.3 that it was added to make drm(4) work,
so I'm not sure whether or not it's limited to that particular driver, or if I
can use it with any other device; has anyone worked with EVFILT_DEVICE filter
and have they gotten it to work for other devices?

Thank you in advance.


Ben Raskin

Loading...