On Mon 17-07-17 15:27:59, Mike Kravetz wrote:
> If hugetlb pages are requested in mmap or shmget system calls, a huge
> page size other than default can be requested. This is accomplished by
> encoding the log2 of the huge page size in the upper bits of the flag
> argument. asm-generic and arch
On Mon, Jul 17, 2017 at 03:27:59PM -0700, Mike Kravetz wrote:
> +#define HUGETLB_FLAG_ENCODE_512KB(19 << MAP_HUGE_SHIFT
> +#define HUGETLB_FLAG_ENCODE_1MB (20 << MAP_HUGE_SHIFT)
> +#define HUGETLB_FLAG_ENCODE_2MB (21 << MAP_HUGE_SHIFT)
> +#define HUGETLB_FLAG_ENCODE_8M
If hugetlb pages are requested in mmap or shmget system calls, a huge
page size other than default can be requested. This is accomplished by
encoding the log2 of the huge page size in the upper bits of the flag
argument. asm-generic and arch specific headers all define the same
values for these
3 matches
Mail list logo