diff options
| author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-04-11 10:23:27 +0000 |
|---|---|---|
| committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-04-21 22:18:24 +0000 |
| commit | 8f95998393f42f368fe22abd9a25c7fa4304e02a (patch) | |
| tree | 4c46878f9b561276ea4292615175c9a36f689004 | |
| parent | 2357de8ea14f9ee6193eb9e31a9c208e1541163a (diff) | |
linuxkpi: Define `__GFP_THISNODE`
It is used to force the NUMA node to allocate from. This flag is
unimplemented for now because we don't have an implementation of
`alloc_pages_node()` yet.
The DRM TTM code started to use this flag in Linux 6.12.
Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56436
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/gfp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/gfp.h b/sys/compat/linuxkpi/common/include/linux/gfp.h index af7cdb422fcb..e8380e326eda 100644 --- a/sys/compat/linuxkpi/common/include/linux/gfp.h +++ b/sys/compat/linuxkpi/common/include/linux/gfp.h @@ -58,7 +58,8 @@ #define __GFP_WAIT M_WAITOK #define __GFP_DMA32 (1U << 24) /* LinuxKPI only */ #define __GFP_NORETRY (1U << 25) /* LinuxKPI only */ -#define __GFP_BITS_SHIFT 26 +#define __GFP_THISNODE (1U << 26) /* Unimplemented */ +#define __GFP_BITS_SHIFT 27 #define __GFP_BITS_MASK ((1 << __GFP_BITS_SHIFT) - 1) #define __GFP_NOFAIL M_WAITOK |
