opnsense-src/sys/modules/linuxkpi/Makefile
Hans Petter Selasky 14c5024db8 Cleanup the LinuxKPI slab implementation.
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
2017-03-08 11:09:27 +00:00

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>