mirror of
https://github.com/opencontainers/runc.git
synced 2026-04-24 08:35:53 +08:00
6a77ee7864
These were inadvertently added to our exported APIs by commit
eeda7bdf80cca ("Add memory policy support"). We couldn't remove them
from runc 1.4.x, but we deprecated them in commit 3741f9186d
("libct/configs: mark MPOL_* constants as deprecated") and marked them
for removal in runc 1.5. Users should never have used these in the first
place.
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
15 lines
454 B
Go
15 lines
454 B
Go
package configs
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
// LinuxMemoryPolicy contains memory policy configuration.
|
|
type LinuxMemoryPolicy struct {
|
|
// Mode specifies memory policy mode without mode flags. See
|
|
// set_mempolicy() documentation for details.
|
|
Mode int `json:"mode,omitempty"`
|
|
// Flags contains mode flags.
|
|
Flags int `json:"flags,omitempty"`
|
|
// Nodes contains NUMA nodes to which the mode applies.
|
|
Nodes *unix.CPUSet `json:"nodes,omitempty"`
|
|
}
|