404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.140.184.203: ~ $
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _ASM_X86_MMAN_H
#define _ASM_X86_MMAN_H

#define MAP_32BIT	0x40		/* only give out 32bit addresses */

#ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
/*
 * Take the 4 protection key bits out of the vma->vm_flags
 * value and turn them in to the bits that we can put in
 * to a pte.
 *
 * Only override these if Protection Keys are available
 * (which is only on 64-bit).
 */
#define arch_vm_get_page_prot(vm_flags)	__pgprot(	\
		((vm_flags) & VM_PKEY_BIT0 ? _PAGE_PKEY_BIT0 : 0) |	\
		((vm_flags) & VM_PKEY_BIT1 ? _PAGE_PKEY_BIT1 : 0) |	\
		((vm_flags) & VM_PKEY_BIT2 ? _PAGE_PKEY_BIT2 : 0) |	\
		((vm_flags) & VM_PKEY_BIT3 ? _PAGE_PKEY_BIT3 : 0))

#define arch_calc_vm_prot_bits(prot, key) (		\
		((key) & 0x1 ? VM_PKEY_BIT0 : 0) |      \
		((key) & 0x2 ? VM_PKEY_BIT1 : 0) |      \
		((key) & 0x4 ? VM_PKEY_BIT2 : 0) |      \
		((key) & 0x8 ? VM_PKEY_BIT3 : 0))
#endif

#include <asm-generic/mman.h>

#endif /* _ASM_X86_MMAN_H */

Filemanager

Name Type Size Permission Actions
a.out.h File 756 B 0644
auxvec.h File 546 B 0644
bitsperlong.h File 321 B 0644
boot.h File 323 B 0644
bootparam.h File 6.97 KB 0644
bpf_perf_event.h File 40 B 0644
byteorder.h File 176 B 0644
debugreg.h File 3.21 KB 0644
e820.h File 2.52 KB 0644
errno.h File 31 B 0644
fcntl.h File 31 B 0644
hw_breakpoint.h File 69 B 0644
hwcap2.h File 174 B 0644
hyperv.h File 12.73 KB 0644
ioctl.h File 31 B 0644
ioctls.h File 32 B 0644
ipcbuf.h File 32 B 0644
ist.h File 854 B 0644
kvm.h File 6.98 KB 0644
kvm_para.h File 2.91 KB 0644
kvm_perf.h File 388 B 0644
ldt.h File 1.28 KB 0644
mce.h File 1.28 KB 0644
mman.h File 1002 B 0644
msgbuf.h File 1.03 KB 0644
msr.h File 346 B 0644
mtrr.h File 4.13 KB 0644
param.h File 31 B 0644
perf_regs.h File 717 B 0644
poll.h File 30 B 0644
posix_types.h File 224 B 0644
posix_types_32.h File 765 B 0644
posix_types_64.h File 609 B 0644
posix_types_x32.h File 581 B 0644
prctl.h File 418 B 0644
processor-flags.h File 6.47 KB 0644
ptrace-abi.h File 1.99 KB 0644
ptrace.h File 1.46 KB 0644
resource.h File 34 B 0644
sembuf.h File 777 B 0644
setup.h File 6 B 0644
shmbuf.h File 1.23 KB 0644
sigcontext.h File 9.5 KB 0644
sigcontext32.h File 247 B 0644
siginfo.h File 494 B 0644
signal.h File 2.83 KB 0644
socket.h File 32 B 0644
sockios.h File 33 B 0644
stat.h File 3.06 KB 0644
statfs.h File 416 B 0644
svm.h File 6.9 KB 0644
swab.h File 724 B 0644
termbits.h File 34 B 0644
termios.h File 33 B 0644
types.h File 152 B 0644
ucontext.h File 2.07 KB 0644
unistd.h File 359 B 0644
unistd_32.h File 9.9 KB 0644
unistd_64.h File 8.68 KB 0644
unistd_x32.h File 15.3 KB 0644
vm86.h File 3.04 KB 0644
vmx.h File 6.59 KB 0644
vsyscall.h File 263 B 0644