Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 9 of 9) sorted by relevance

/mm/
Dnommu.c245 void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot) in __vmalloc() argument
432 void *vmap(struct page **pages, unsigned int count, unsigned long flags, pgprot_t prot) in vmap() argument
445 void *vm_map_ram(struct page **pages, unsigned int count, int node, pgprot_t prot) in vm_map_ram() argument
916 unsigned long prot, in validate_mmap_request() argument
1002 if ((prot & PROT_WRITE) && in validate_mmap_request()
1026 if (prot & PROT_WRITE) in validate_mmap_request()
1031 if (((prot & PROT_READ) && !(capabilities & BDI_CAP_READ_MAP)) || in validate_mmap_request()
1032 ((prot & PROT_WRITE) && !(capabilities & BDI_CAP_WRITE_MAP)) || in validate_mmap_request()
1033 ((prot & PROT_EXEC) && !(capabilities & BDI_CAP_EXEC_MAP)) in validate_mmap_request()
1047 if (prot & PROT_EXEC) in validate_mmap_request()
[all …]
Dmprotect.c336 unsigned long, prot) in SYSCALL_DEFINE3()
341 const int grows = prot & (PROT_GROWSDOWN|PROT_GROWSUP); in SYSCALL_DEFINE3()
342 prot &= ~(PROT_GROWSDOWN|PROT_GROWSUP); in SYSCALL_DEFINE3()
354 if (!arch_validate_prot(prot)) in SYSCALL_DEFINE3()
357 reqprot = prot; in SYSCALL_DEFINE3()
361 if ((prot & PROT_READ) && (current->personality & READ_IMPLIES_EXEC)) in SYSCALL_DEFINE3()
362 prot |= PROT_EXEC; in SYSCALL_DEFINE3()
364 vm_flags = calc_vm_prot_bits(prot); in SYSCALL_DEFINE3()
407 error = security_file_mprotect(vma, reqprot, prot); in SYSCALL_DEFINE3()
Dvmalloc.c113 unsigned long end, pgprot_t prot, struct page **pages, int *nr) in vmap_pte_range() argument
132 set_pte_at(&init_mm, addr, pte, mk_pte(page, prot)); in vmap_pte_range()
139 unsigned long end, pgprot_t prot, struct page **pages, int *nr) in vmap_pmd_range() argument
149 if (vmap_pte_range(pmd, addr, next, prot, pages, nr)) in vmap_pmd_range()
156 unsigned long end, pgprot_t prot, struct page **pages, int *nr) in vmap_pud_range() argument
166 if (vmap_pmd_range(pud, addr, next, prot, pages, nr)) in vmap_pud_range()
179 pgprot_t prot, struct page **pages) in vmap_page_range_noflush() argument
191 err = vmap_pud_range(pgd, addr, next, prot, pages, &nr); in vmap_page_range_noflush()
200 pgprot_t prot, struct page **pages) in vmap_page_range() argument
204 ret = vmap_page_range_noflush(start, end, prot, pages); in vmap_page_range()
[all …]
Dearly_ioremap.c49 phys_addr_t phys, pgprot_t prot) in __late_set_fixmap() argument
97 __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) in __early_ioremap() argument
145 __late_set_fixmap(idx, phys_addr, prot); in __early_ioremap()
147 __early_set_fixmap(idx, phys_addr, prot); in __early_ioremap()
Dutil.c255 unsigned long len, unsigned long prot, in vm_mmap_pgoff() argument
262 ret = security_mmap_file(file, prot, flag); in vm_mmap_pgoff()
265 ret = do_mmap_pgoff(file, addr, len, prot, flag, pgoff, in vm_mmap_pgoff()
275 unsigned long len, unsigned long prot, in vm_mmap() argument
283 return vm_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT); in vm_mmap()
Dfremap.c73 unsigned long addr, unsigned long pgoff, pgprot_t prot) in install_file_pte() argument
143 unsigned long, prot, unsigned long, pgoff, unsigned long, flags) in SYSCALL_DEFINE5() argument
156 if (prot) in SYSCALL_DEFINE5()
Dmemory.c1465 struct page *page, pgprot_t prot) in insert_page() argument
1488 set_pte_at(mm, addr, pte, mk_pte(page, prot)); in insert_page()
1543 unsigned long pfn, pgprot_t prot) in insert_pfn() argument
1559 entry = pte_mkspecial(pfn_pte(pfn, prot)); in insert_pfn()
1647 unsigned long pfn, pgprot_t prot) in remap_pte_range() argument
1658 set_pte_at(mm, addr, pte, pte_mkspecial(pfn_pte(pfn, prot))); in remap_pte_range()
1668 unsigned long pfn, pgprot_t prot) in remap_pmd_range() argument
1681 pfn + (addr >> PAGE_SHIFT), prot)) in remap_pmd_range()
1689 unsigned long pfn, pgprot_t prot) in remap_pud_range() argument
1701 pfn + (addr >> PAGE_SHIFT), prot)) in remap_pud_range()
[all …]
Dmmap.c1297 unsigned long len, unsigned long prot, in do_mmap_pgoff() argument
1312 if ((prot & PROT_READ) && (current->personality & READ_IMPLIES_EXEC)) in do_mmap_pgoff()
1314 prot |= PROT_EXEC; in do_mmap_pgoff()
1346 vm_flags = calc_vm_prot_bits(prot) | calc_vm_flag_bits(flags) | in do_mmap_pgoff()
1361 if ((prot&PROT_WRITE) && !(file->f_mode&FMODE_WRITE)) in do_mmap_pgoff()
1445 unsigned long, prot, unsigned long, flags, in SYSCALL_DEFINE6() argument
1486 retval = vm_mmap_pgoff(file, addr, len, prot, flags, pgoff); in SYSCALL_DEFINE6()
1498 unsigned long prot; member
1513 return sys_mmap_pgoff(a.addr, a.len, a.prot, a.flags, a.fd, in SYSCALL_DEFINE1()
Dhuge_memory.c705 static inline pmd_t mk_huge_pmd(struct page *page, pgprot_t prot) in mk_huge_pmd() argument
708 entry = mk_pmd(page, prot); in mk_huge_pmd()