Lines Matching refs:prot
64 static void linux_fixup_prot(struct thread *td, int *prot);
68 linux_mmap_check_fp(struct file *fp, int flags, int prot, int maxprot) in linux_mmap_check_fp() argument
79 linux_mmap_common(struct thread *td, uintptr_t addr, size_t len, int prot, in linux_mmap_common() argument
89 addr, len, prot, flags, fd, pos); in linux_mmap_common()
135 linux_fixup_prot(td, &prot); in linux_mmap_common()
210 .mr_prot = prot, in linux_mmap_common()
233 linux_mprotect_common(struct thread *td, uintptr_t addr, size_t len, int prot) in linux_mprotect_common() argument
237 prot &= ~(LINUX_PROT_GROWSDOWN | LINUX_PROT_GROWSUP); in linux_mprotect_common()
238 if ((prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) != 0) in linux_mprotect_common()
242 linux_fixup_prot(td, &prot); in linux_mprotect_common()
244 return (kern_mprotect(td, addr, len, prot)); in linux_mprotect_common()
415 linux_fixup_prot(struct thread *td, int *prot) in linux_fixup_prot() argument
419 if (SV_PROC_FLAG(td->td_proc, SV_ILP32) && *prot & PROT_READ) { in linux_fixup_prot()
422 *prot |= PROT_EXEC; in linux_fixup_prot()