Lines Matching refs:prot
58 static void linux_fixup_prot(struct thread *td, int *prot);
62 linux_mmap_check_fp(struct file *fp, int flags, int prot, int maxprot) in linux_mmap_check_fp() argument
73 linux_mmap_common(struct thread *td, uintptr_t addr, size_t len, int prot, in linux_mmap_common() argument
82 addr, len, prot, flags, fd, pos); in linux_mmap_common()
127 linux_fixup_prot(td, &prot); in linux_mmap_common()
202 .mr_prot = prot, in linux_mmap_common()
225 linux_mprotect_common(struct thread *td, uintptr_t addr, size_t len, int prot) in linux_mprotect_common() argument
230 prot &= ~LINUX_PROT_GROWSUP; in linux_mprotect_common()
231 if ((prot & ~(LINUX_PROT_GROWSDOWN | PROT_READ | PROT_WRITE | in linux_mprotect_common()
234 if ((prot & LINUX_PROT_GROWSDOWN) != 0) { in linux_mprotect_common()
235 prot &= ~LINUX_PROT_GROWSDOWN; in linux_mprotect_common()
240 linux_fixup_prot(td, &prot); in linux_mprotect_common()
242 return (kern_mprotect(td, addr, len, prot, flags)); in linux_mprotect_common()
413 linux_fixup_prot(struct thread *td, int *prot) in linux_fixup_prot() argument
417 if (SV_PROC_FLAG(td->td_proc, SV_ILP32) && *prot & PROT_READ) { in linux_fixup_prot()
420 *prot |= PROT_EXEC; in linux_fixup_prot()