In FreeBSD version 14.0, it appears that the kqueue and kevent calls are not supported within kernel modules. Could you please provide information about the alternative or replacement calls that can be used under kernel mode?
They are library calls, they've never been allowed within the kernel. You cannot call userspace libraries.In FreeBSD version 14.0,
kqueue(2):Kqueue and kevent are not library calls; they are system calls.
NAME
kqueue, kevent – kernel event notification mechanism
LIBRARY
Standard C Library (libc, -lc)
[…] kqueue(2): […]