[][src]Module nc::hugetlb_encode

Constants

HUGETLB_FLAG_ENCODE_1MB
HUGETLB_FLAG_ENCODE_1GB
HUGETLB_FLAG_ENCODE_2MB
HUGETLB_FLAG_ENCODE_2GB
HUGETLB_FLAG_ENCODE_8MB
HUGETLB_FLAG_ENCODE_16MB
HUGETLB_FLAG_ENCODE_16GB
HUGETLB_FLAG_ENCODE_32MB
HUGETLB_FLAG_ENCODE_64KB
HUGETLB_FLAG_ENCODE_256MB
HUGETLB_FLAG_ENCODE_512KB
HUGETLB_FLAG_ENCODE_512MB
HUGETLB_FLAG_ENCODE_MASK
HUGETLB_FLAG_ENCODE_SHIFT

Several system calls take a flag to request "hugetlb" huge pages. Without further specification, these system calls will use the system's default huge page size. If a system supports multiple huge page sizes, the desired huge page size can be specified in bits [26:31] of the flag arguments. The value in these 6 bits will encode the log2 of the huge page size.