| Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _UAPI_LINUX_MEMFD_H | 
|  | 20 | #define _UAPI_LINUX_MEMFD_H | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 21 | #include <asm-generic/hugetlb_encode.h> | 
| Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 22 | #define MFD_CLOEXEC 0x0001U | 
|  | 23 | #define MFD_ALLOW_SEALING 0x0002U | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 24 | #define MFD_HUGETLB 0x0004U | 
|  | 25 | #define MFD_HUGE_SHIFT HUGETLB_FLAG_ENCODE_SHIFT | 
|  | 26 | #define MFD_HUGE_MASK HUGETLB_FLAG_ENCODE_MASK | 
|  | 27 | #define MFD_HUGE_64KB HUGETLB_FLAG_ENCODE_64KB | 
|  | 28 | #define MFD_HUGE_512KB HUGETLB_FLAG_ENCODE_512KB | 
|  | 29 | #define MFD_HUGE_1MB HUGETLB_FLAG_ENCODE_1MB | 
|  | 30 | #define MFD_HUGE_2MB HUGETLB_FLAG_ENCODE_2MB | 
|  | 31 | #define MFD_HUGE_8MB HUGETLB_FLAG_ENCODE_8MB | 
|  | 32 | #define MFD_HUGE_16MB HUGETLB_FLAG_ENCODE_16MB | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 33 | #define MFD_HUGE_32MB HUGETLB_FLAG_ENCODE_32MB | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 34 | #define MFD_HUGE_256MB HUGETLB_FLAG_ENCODE_256MB | 
| Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 35 | #define MFD_HUGE_512MB HUGETLB_FLAG_ENCODE_512MB | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 36 | #define MFD_HUGE_1GB HUGETLB_FLAG_ENCODE_1GB | 
|  | 37 | #define MFD_HUGE_2GB HUGETLB_FLAG_ENCODE_2GB | 
|  | 38 | #define MFD_HUGE_16GB HUGETLB_FLAG_ENCODE_16GB | 
| Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 39 | #endif |