/mm/ |
D | gup.c | 1094 int write, struct page **pages, int *nr) in gup_pte_range() argument 1116 pte_protnone(pte) || (write && !pte_write(pte))) in gup_pte_range() 1156 int write, struct page **pages, int *nr) in gup_pte_range() argument 1163 unsigned long end, int write, struct page **pages, int *nr) in gup_huge_pmd() argument 1168 if (write && !pmd_write(orig)) in gup_huge_pmd() 1209 unsigned long end, int write, struct page **pages, int *nr) in gup_huge_pud() argument 1214 if (write && !pud_write(orig)) in gup_huge_pud() 1250 unsigned long end, int write, in gup_huge_pgd() argument 1256 if (write && !pgd_write(orig)) in gup_huge_pgd() 1292 int write, struct page **pages, int *nr) in gup_pmd_range() argument [all …]
|
D | util.c | 246 int nr_pages, int write, struct page **pages) in __get_user_pages_fast() argument 277 int nr_pages, int write, struct page **pages) in get_user_pages_fast() argument 281 pages, write ? FOLL_WRITE : 0); in get_user_pages_fast() 377 int overcommit_ratio_handler(struct ctl_table *table, int write, in overcommit_ratio_handler() argument 383 ret = proc_dointvec(table, write, buffer, lenp, ppos); in overcommit_ratio_handler() 384 if (ret == 0 && write) in overcommit_ratio_handler() 389 int overcommit_kbytes_handler(struct ctl_table *table, int write, in overcommit_kbytes_handler() argument 395 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in overcommit_kbytes_handler() 396 if (ret == 0 && write) in overcommit_kbytes_handler()
|
D | page-writeback.c | 474 int dirty_background_ratio_handler(struct ctl_table *table, int write, in dirty_background_ratio_handler() argument 480 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirty_background_ratio_handler() 481 if (ret == 0 && write) in dirty_background_ratio_handler() 486 int dirty_background_bytes_handler(struct ctl_table *table, int write, in dirty_background_bytes_handler() argument 492 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in dirty_background_bytes_handler() 493 if (ret == 0 && write) in dirty_background_bytes_handler() 498 int dirty_ratio_handler(struct ctl_table *table, int write, in dirty_ratio_handler() argument 505 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirty_ratio_handler() 506 if (ret == 0 && write && vm_dirty_ratio != old_ratio) { in dirty_ratio_handler() 513 int dirty_bytes_handler(struct ctl_table *table, int write, in dirty_bytes_handler() argument [all …]
|
D | madvise.c | 464 int write; in SYSCALL_DEFINE3() local 491 write = madvise_need_mmap_write(behavior); in SYSCALL_DEFINE3() 492 if (write) in SYSCALL_DEFINE3() 543 if (write) in SYSCALL_DEFINE3()
|
D | hugetlb_cgroup.c | 350 cft->write = hugetlb_cgroup_write; in __hugetlb_cgroup_file_init() 362 cft->write = hugetlb_cgroup_reset; in __hugetlb_cgroup_file_init() 369 cft->write = hugetlb_cgroup_reset; in __hugetlb_cgroup_file_init()
|
D | hugetlb.c | 2857 static int proc_hugetlb_doulongvec_minmax(struct ctl_table *table, int write, in proc_hugetlb_doulongvec_minmax() argument 2870 return proc_doulongvec_minmax(&dup_table, write, buffer, length, ppos); in proc_hugetlb_doulongvec_minmax() 2874 struct ctl_table *table, int write, in hugetlb_sysctl_handler_common() argument 2884 ret = proc_hugetlb_doulongvec_minmax(table, write, buffer, length, ppos, in hugetlb_sysctl_handler_common() 2889 if (write) in hugetlb_sysctl_handler_common() 2896 int hugetlb_sysctl_handler(struct ctl_table *table, int write, in hugetlb_sysctl_handler() argument 2900 return hugetlb_sysctl_handler_common(false, table, write, in hugetlb_sysctl_handler() 2905 int hugetlb_mempolicy_sysctl_handler(struct ctl_table *table, int write, in hugetlb_mempolicy_sysctl_handler() argument 2908 return hugetlb_sysctl_handler_common(true, table, write, in hugetlb_mempolicy_sysctl_handler() 2913 int hugetlb_overcommit_handler(struct ctl_table *table, int write, in hugetlb_overcommit_handler() argument [all …]
|
D | memcontrol.c | 4046 .write = mem_cgroup_reset, 4052 .write = mem_cgroup_write, 4058 .write = mem_cgroup_write, 4064 .write = mem_cgroup_reset, 4073 .write = mem_cgroup_force_empty_write, 4082 .write = memcg_write_event_control, 4114 .write = mem_cgroup_write, 4125 .write = mem_cgroup_reset, 4131 .write = mem_cgroup_reset, 5330 .write = memory_low_write, [all …]
|
D | page_alloc.c | 4069 int numa_zonelist_order_handler(struct ctl_table *table, int write, in numa_zonelist_order_handler() argument 4078 if (write) { in numa_zonelist_order_handler() 4085 ret = proc_dostring(table, write, buffer, length, ppos); in numa_zonelist_order_handler() 4088 if (write) { in numa_zonelist_order_handler() 6314 int min_free_kbytes_sysctl_handler(struct ctl_table *table, int write, in postcore_initcall() 6319 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in postcore_initcall() 6323 if (write) { in postcore_initcall() 6331 int sysctl_min_unmapped_ratio_sysctl_handler(struct ctl_table *table, int write, in sysctl_min_unmapped_ratio_sysctl_handler() argument 6337 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_min_unmapped_ratio_sysctl_handler() 6347 int sysctl_min_slab_ratio_sysctl_handler(struct ctl_table *table, int write, in sysctl_min_slab_ratio_sysctl_handler() argument [all …]
|
D | compaction.c | 1719 int sysctl_compaction_handler(struct ctl_table *table, int write, in sysctl_compaction_handler() argument 1722 if (write) in sysctl_compaction_handler() 1728 int sysctl_extfrag_handler(struct ctl_table *table, int write, in sysctl_extfrag_handler() argument 1731 proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_extfrag_handler()
|
D | swap.c | 379 int get_kernel_pages(const struct kvec *kiov, int nr_segs, int write, in get_kernel_pages() argument 407 int get_kernel_page(unsigned long start, int write, struct page **pages) in get_kernel_page() argument 414 return get_kernel_pages(&kiov, 1, write, pages); in get_kernel_page()
|
D | nommu.c | 1939 int write = gup_flags & FOLL_WRITE; in __access_remote_vm() local 1951 if (write && vma->vm_flags & VM_MAYWRITE) in __access_remote_vm() 1954 else if (!write && vma->vm_flags & VM_MAYREAD) in __access_remote_vm() 1988 int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write) in access_process_vm() argument 2000 write ? FOLL_WRITE : 0); in access_process_vm()
|
D | memory.c | 2861 struct page *page, pte_t *pte, bool write, bool anon) in do_set_pte() argument 2867 if (write) in do_set_pte() 3686 void *buf, int len, int write) in generic_access_phys() argument 3693 if (follow_phys(vma, addr, write, &prot, &phys_addr)) in generic_access_phys() 3700 if (write) in generic_access_phys() 3720 int write = gup_flags & FOLL_WRITE; in __access_remote_vm() local 3744 len, write); in __access_remote_vm() 3756 if (write) { in __access_remote_vm() 3798 void *buf, int len, int write) in access_process_vm() argument 3808 if (write) in access_process_vm()
|
D | huge_memory.c | 870 pmd_t *pmd, unsigned long pfn, pgprot_t prot, bool write) in insert_pfn_pmd() argument 879 if (write) { in insert_pfn_pmd() 890 pmd_t *pmd, unsigned long pfn, bool write) in vmf_insert_pfn_pmd() argument 908 insert_pfn_pmd(vma, addr, pmd, pfn, pgprot, write); in vmf_insert_pfn_pmd()
|
D | backing-dev.c | 1050 int pdflush_proc_obsolete(struct ctl_table *table, int write, in pdflush_proc_obsolete() argument
|
D | slab_common.c | 1172 .write = slabinfo_write,
|
D | kmemleak.c | 1765 .write = kmemleak_write,
|
/mm/kasan/ |
D | kasan.c | 310 size_t size, bool write, in check_memory_region_inline() argument 318 kasan_report(addr, size, write, ret_ip); in check_memory_region_inline() 325 kasan_report(addr, size, write, ret_ip); in check_memory_region_inline() 329 size_t size, bool write, in check_memory_region() argument 332 check_memory_region_inline(addr, size, write, ret_ip); in check_memory_region()
|