diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-04-24 01:25:07 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-24 01:25:07 +0000 |
commit | 8a6edd7b939875bee1a1ed8b9f1616f543a2ae69 (patch) | |
tree | 6652f337780484c11405b8db179e82a99866a7c2 /pkg/abi/linux/mm.go | |
parent | 01665b4a54afd0efe5b376a789865de66b57ef87 (diff) | |
parent | f01f2132d8d3e551579cba9a1b942b4b70d83f21 (diff) |
Merge release-20200323.0-229-gf01f213 (automated)
Diffstat (limited to 'pkg/abi/linux/mm.go')
-rw-r--r-- | pkg/abi/linux/mm.go | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pkg/abi/linux/mm.go b/pkg/abi/linux/mm.go index cd043dac3..07cc1895e 100644 --- a/pkg/abi/linux/mm.go +++ b/pkg/abi/linux/mm.go @@ -90,14 +90,19 @@ const ( MS_SYNC = 1 << 2 ) +// NumaPolicy is the NUMA memory policy for a memory range. See numa(7). +// +// +marshal +type NumaPolicy int32 + // Policies for get_mempolicy(2)/set_mempolicy(2). const ( - MPOL_DEFAULT = 0 - MPOL_PREFERRED = 1 - MPOL_BIND = 2 - MPOL_INTERLEAVE = 3 - MPOL_LOCAL = 4 - MPOL_MAX = 5 + MPOL_DEFAULT NumaPolicy = 0 + MPOL_PREFERRED NumaPolicy = 1 + MPOL_BIND NumaPolicy = 2 + MPOL_INTERLEAVE NumaPolicy = 3 + MPOL_LOCAL NumaPolicy = 4 + MPOL_MAX NumaPolicy = 5 ) // Flags for get_mempolicy(2). |