opnsense-src/sys/modules/linuxkpi/Makefile
Jean-Sébastien Pédron 6425b7399b linuxkpi: Add eventfd_*()
Add <linux/eventfd.h> and expose the `eventfd_*()` API. This is used by
DRM drivers for some time, but the code was commented out so far.

Note that Linux uses `struct eventfd_ctx`, but FreeBSD defines `struct
eventfd`. We define `eventfd_ctx` as a synonym to `eventfd`.

Reviewed by:	christos, markj
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50853

(cherry picked from commit a200c8e51cdb4586ad2eb20d2b45ba367f00beaf)
2026-04-22 20:56:59 +00:00

58 lines
1.1 KiB
Makefile

.PATH: ${SRCTOP}/sys/compat/linuxkpi/common/src
KMOD= linuxkpi
SRCS= linux_compat.c \
linux_current.c \
linux_devres.c \
linux_dmi.c \
linux_domain.c \
linux_eventfd.c \
linux_firmware.c \
linux_folio.c \
linux_fpu.c \
linux_hrtimer.c \
linux_idr.c \
linux_interrupt.c \
linux_i2c.c \
linux_i2cbb.c \
linux_kmod.c \
linux_kobject.c \
linux_kthread.c \
linux_lock.c \
linux_netdev.c \
linux_page.c \
linux_pci.c \
linux_radix.c \
linux_rcu.c \
linux_schedule.c \
linux_seq_buf.c \
linux_seq_file.c \
linux_shmemfs.c \
linux_shrinker.c \
linux_simple_attr.c \
linux_siphash.c \
linux_skbuff.c \
linux_slab.c \
linux_tasklet.c \
linux_usb.c \
linux_work.c \
linux_xarray.c
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
${MACHINE_CPUARCH} == "i386"
SRCS+= opt_acpi.h acpi_if.h linux_acpi.c
.endif
.if ${MACHINE_CPUARCH} == "i386"
SRCS+= opt_apic.h
.endif
SRCS+= opt_ddb.h
SRCS+= ${LINUXKPI_GENSRCS}
CFLAGS+= ${LINUXKPI_INCLUDES}
CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include
EXPORT_SYMS= YES
.include <bsd.kmod.mk>