Class MemfdCreateFlags
java.lang.Object
com.github.marschall.nativebytebuffers.MemfdCreateFlags
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Allow sealing operations on this file.static final int
Set the close-on-exec (FD_CLOEXEC) flag on the new file descriptor.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Used in conjunction with MFD_HUGETLB to select alternative hugetlb page sizes (respectively, 2 MB, 1 GB, ...) on systems that support multiple hugetlb page sizes.static final int
static final int
(since Linux 4.14) The anonymous file will be created in the hugetlbfs filesystem using huge pages. -
Method Summary
-
Field Details
-
MFD_CLOEXEC
public static final int MFD_CLOEXECSet the close-on-exec (FD_CLOEXEC) flag on the new file descriptor. See the description of the O_CLOEXEC flag in open(2) for reasons why this may be useful.- See Also:
-
MFD_ALLOW_SEALING
public static final int MFD_ALLOW_SEALINGAllow sealing operations on this file. See the discussion of the F_ADD_SEALS and F_GET_SEALS operations in fcntl(2), and also NOTES, below. The initial set of seals is empty. If this flag is not set, the initial set of seals will be F_SEAL_SEAL, meaning that no other seals can be set on the file.- See Also:
-
MFD_HUGETLB
public static final int MFD_HUGETLB(since Linux 4.14) The anonymous file will be created in the hugetlbfs filesystem using huge pages. See the Linux kernel source file Documentation/admin-guide/mm/hugetlbpage.rst for more information about hugetlbfs. Specifying both MFD_HUGETLB and MFD_ALLOW_SEALING in flags is supported since Linux 4.16.- See Also:
-
MFD_HUGE_64KB
public static final int MFD_HUGE_64KBUsed in conjunction with MFD_HUGETLB to select alternative hugetlb page sizes (respectively, 2 MB, 1 GB, ...) on systems that support multiple hugetlb page sizes. Definitions for known huge page sizes are included in the header file <linux/memfd.h>.For details on encoding huge page sizes not included in the header file, see the discussion of the similarly named constants in mmap(2).
- See Also:
-
MFD_HUGE_512KB
public static final int MFD_HUGE_512KB- See Also:
-
MFD_HUGE_1MB
public static final int MFD_HUGE_1MB- See Also:
-
MFD_HUGE_2MB
public static final int MFD_HUGE_2MB- See Also:
-
MFD_HUGE_8MB
public static final int MFD_HUGE_8MB- See Also:
-
MFD_HUGE_16MB
public static final int MFD_HUGE_16MB- See Also:
-
MFD_HUGE_32MB
public static final int MFD_HUGE_32MB- See Also:
-
MFD_HUGE_256MB
public static final int MFD_HUGE_256MB- See Also:
-
MFD_HUGE_512MB
public static final int MFD_HUGE_512MB- See Also:
-
MFD_HUGE_1GB
public static final int MFD_HUGE_1GB- See Also:
-
MFD_HUGE_2GB
public static final int MFD_HUGE_2GB- See Also:
-
MFD_HUGE_16GB
public static final int MFD_HUGE_16GB- See Also:
-