summaryrefslogtreecommitdiff
path: root/lib/Checker/UndefinedArraySubscriptChecker.cpp
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2025-05-26 19:18:24 +0200
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-01-25 17:04:40 +0100
commit5931649751847cc3ca54255bb767424dcb8a3e97 (patch)
tree9326aea9c58718b0b0cbb0eaface77c541e027bf /lib/Checker/UndefinedArraySubscriptChecker.cpp
parente878df0d3b1ecb409c21c808f7c3d623277353af (diff)
eventfd: Add refcounting
An eventfd file descriptor can be used by drivers such as DRM drivers through linuxkpi. A driver can hold a reference to such a file regardless of the fact it is used by userland or not. This patch introduces a refcount in `struct eventfd`, plus the `eventfd_get()` and `eventfd_put()` functions to acquire and release references. These functions will be used by DRM drivers for instance. This structure is internal to `sys/kern/sys_eventfd.c` and not used anywhere else. Thus it is safe to add a field without breaking anything. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50849
Diffstat (limited to 'lib/Checker/UndefinedArraySubscriptChecker.cpp')
0 files changed, 0 insertions, 0 deletions