Skip to content
Commit 176671f6 authored by Carlos Llamas's avatar Carlos Llamas Committed by Florian Weimer
Browse files

linux: add definitions for hugetlb page size encodings



A desired hugetlb page size can be encoded in the flags parameter of
system calls such as mmap() and shmget(). The Linux UAPI headers have
included explicit definitions for these encodings since v4.14.

This patch adds these definitions that are used along with MAP_HUGETLB
and SHM_HUGETLB flags as specified in the corresponding man pages. This
relieves programs from having to duplicate and/or compute the encodings
manually.

Additionally, the filter on these definitions in tst-mman-consts.py is
removed, as suggested by Florian. I then ran this tests successfully,
confirming the alignment with the kernel headers.

  PASS: misc/tst-mman-consts
  original exit status 0

Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
Tested-by: default avatarFlorian Weimer <fweimer@redhat.com>
Reviewed-by: default avatarFlorian Weimer <fweimer@redhat.com>
parent e260ceb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment