404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.15.137.62: ~ $
#ifndef _ASM_GENERIC_HUGETLB_ENCODE_H_
#define _ASM_GENERIC_HUGETLB_ENCODE_H_

/*
 * 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.
 *
 * The following definitions are associated with this huge page size
 * encoding in flag arguments.  System call specific header files
 * that use this encoding should include this file.  They can then
 * provide definitions based on these with their own specific prefix.
 * for example:
 * #define MAP_HUGE_SHIFT HUGETLB_FLAG_ENCODE_SHIFT
 */

#define HUGETLB_FLAG_ENCODE_SHIFT	26
#define HUGETLB_FLAG_ENCODE_MASK	0x3f

#define HUGETLB_FLAG_ENCODE_64KB	(16 << HUGETLB_FLAG_ENCODE_SHIFT)
#define HUGETLB_FLAG_ENCODE_512KB	(19 << HUGETLB_FLAG_ENCODE_SHIFT)
#define HUGETLB_FLAG_ENCODE_1MB		(20 << HUGETLB_FLAG_ENCODE_SHIFT)
#define HUGETLB_FLAG_ENCODE_2MB		(21 << HUGETLB_FLAG_ENCODE_SHIFT)
#define HUGETLB_FLAG_ENCODE_8MB		(23 << HUGETLB_FLAG_ENCODE_SHIFT)
#define HUGETLB_FLAG_ENCODE_16MB	(24 << HUGETLB_FLAG_ENCODE_SHIFT)
#define HUGETLB_FLAG_ENCODE_256MB	(28 << HUGETLB_FLAG_ENCODE_SHIFT)
#define HUGETLB_FLAG_ENCODE_1GB		(30 << HUGETLB_FLAG_ENCODE_SHIFT)
#define HUGETLB_FLAG_ENCODE_2GB		(31 << HUGETLB_FLAG_ENCODE_SHIFT)
#define HUGETLB_FLAG_ENCODE_16GB	(34 << HUGETLB_FLAG_ENCODE_SHIFT)

#endif /* _ASM_GENERIC_HUGETLB_ENCODE_H_ */

Filemanager

Name Type Size Permission Actions
auxvec.h File 218 B 0644
bitsperlong.h File 564 B 0644
bpf_perf_event.h File 238 B 0644
errno-base.h File 1.57 KB 0644
errno.h File 5.52 KB 0644
fcntl.h File 5.3 KB 0644
hugetlb_encode.h File 1.57 KB 0644
int-l64.h File 718 B 0644
int-ll64.h File 864 B 0644
ioctl.h File 3.4 KB 0644
ioctls.h File 3.78 KB 0644
ipcbuf.h File 1003 B 0644
kvm_para.h File 96 B 0644
mman-common.h File 2.95 KB 0644
mman.h File 1.05 KB 0644
msgbuf.h File 1.53 KB 0644
param.h File 353 B 0644
poll.h File 858 B 0644
posix_types.h File 2.24 KB 0644
resource.h File 1.83 KB 0644
sembuf.h File 1.23 KB 0644
setup.h File 190 B 0644
shmbuf.h File 1.76 KB 0644
shmparam.h File 231 B 0644
siginfo.h File 8.42 KB 0644
signal-defs.h File 800 B 0644
signal.h File 2.65 KB 0644
socket.h File 2.24 KB 0644
sockios.h File 439 B 0644
stat.h File 2.57 KB 0644
statfs.h File 1.8 KB 0644
swab.h File 502 B 0644
termbits.h File 4.61 KB 0644
termios.h File 1.34 KB 0644
types.h File 233 B 0644
ucontext.h File 357 B 0644
unistd.h File 29.54 KB 0644