mirror of
https://github.com/opnsense/src.git
synced 2026-03-14 22:53:16 -04:00
Put large functions into linux_slab.c instead of declaring them static inline. Add support for more memory allocation wrappers like kmalloc_array() and __vmalloc(). Make sure either the M_WAITOK or the M_NOWAIT flag is set and mask away unused memory allocation flags before calling FreeBSD's malloc() routine. Move kmalloc_node() definition to slab.h where it belongs. Implement support for the SLAB_DESTROY_BY_RCU feature when creating a kmem_cache which basically means kmem_cache memory is freed using call_rcu(). MFC after: 1 week Sponsored by: Mellanox Technologies
29 lines
503 B
Makefile
29 lines
503 B
Makefile
# $FreeBSD$
|
|
.PATH: ${SRCTOP}/sys/compat/linuxkpi/common/src
|
|
|
|
KMOD= linuxkpi
|
|
SRCS= linux_kmod.c \
|
|
linux_compat.c \
|
|
linux_current.c \
|
|
linux_kthread.c \
|
|
linux_page.c \
|
|
linux_pci.c \
|
|
linux_radix.c \
|
|
linux_rcu.c \
|
|
linux_slab.c \
|
|
linux_tasklet.c \
|
|
linux_idr.c \
|
|
linux_usb.c \
|
|
linux_work.c
|
|
|
|
SRCS+= bus_if.h \
|
|
device_if.h \
|
|
pci_if.h \
|
|
vnode_if.h \
|
|
usb_if.h \
|
|
opt_usb.h
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include
|
|
|
|
.include <bsd.kmod.mk>
|