Adjust knote(9) API
authorvisa <visa@openbsd.org>
Fri, 10 Feb 2023 14:34:16 +0000 (14:34 +0000)
committervisa <visa@openbsd.org>
Fri, 10 Feb 2023 14:34:16 +0000 (14:34 +0000)
commitc78098b6fd34d7b1be708a9f83a40e9ecabe3690
treea0ba58e60ee0a3c637c1cdad03792b9ef3cf142f
parentdb7f53a30cee82d2fb101160e1fafe6e4cffacf8
Adjust knote(9) API

Make knote(9) lock the knote list internally, and add knote_locked(9)
for the typical situation where the list is already locked.

Remove the KNOTE(9) macro to simplify the API.

Manual page OK jmc@
OK mpi@ mvs@
24 files changed:
share/man/man9/knote.9
sys/arch/arm64/dev/apm.c
sys/arch/i386/i386/apm.c
sys/arch/loongson/dev/apm.c
sys/dev/acpi/acpi.c
sys/dev/audio.c
sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c
sys/dev/pci/drm/drm_connector.c
sys/dev/pci/drm/drm_linux.c
sys/dev/pci/drm/drm_mode_object.c
sys/dev/pci/drm/i915/i915_driver.c
sys/kern/kern_event.c
sys/kern/kern_exec.c
sys/kern/kern_fork.c
sys/kern/kern_sig.c
sys/kern/sys_generic.c
sys/kern/sys_pipe.c
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/kern/uipc_syscalls.c
sys/net/bpf.c
sys/net/if_pppx.c
sys/sys/event.h
sys/sys/vnode.h