aboutsummaryrefslogtreecommitdiff
path: root/sys/conf
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2020-12-22 18:15:01 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2021-01-12 11:31:00 +0000
commit2c95fb753fb20e82c16356537204d8583e125be0 (patch)
tree3905baf593a97cf41590ff94c754ae12f45e1c71 /sys/conf
parent105a37cac76b971f7a94409fbdc4f508a7e97fa0 (diff)
downloadsrc-2c95fb753fb20e82c16356537204d8583e125be0.tar.gz
src-2c95fb753fb20e82c16356537204d8583e125be0.zip
linuxkpi: Add shrinker support
A driver can register a shrinker that will be called when the kernel wants to free some memory. Add support for that in linuxkpi and call the registered shrinkers when the lowmem event is triggered. Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D27728
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/files2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/conf/files b/sys/conf/files
index 860fae3c8273..1765e217fcf6 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -4576,6 +4576,8 @@ compat/linuxkpi/common/src/linux_schedule.c optional compat_linuxkpi \
compile-with "${LINUXKPI_C}"
compat/linuxkpi/common/src/linux_shmemfs.c optional compat_linuxkpi \
compile-with "${LINUXKPI_C}"
+compat/linuxkpi/common/src/linux_shrinker.c optional compat_linuxkpi \
+ compile-with "${LINUXKPI_C}"
compat/linuxkpi/common/src/linux_slab.c optional compat_linuxkpi \
compile-with "${LINUXKPI_C}"
compat/linuxkpi/common/src/linux_usb.c optional compat_linuxkpi usb \