Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 15 of 15) sorted by relevance

/mm/
Dpercpu-stats.c53 int *buffer) in chunk_map_stats() argument
62 alloc_sizes = buffer; in chunk_map_stats()
139 int *buffer; in percpu_stats_show() local
147 buffer = vmalloc(array_size(sizeof(int), (2 * max_nr_alloc + 1))); in percpu_stats_show()
148 if (!buffer) in percpu_stats_show()
156 vfree(buffer); in percpu_stats_show()
202 chunk_map_stats(m, pcpu_reserved_chunk, buffer); in percpu_stats_show()
209 chunk_map_stats(m, chunk, buffer); in percpu_stats_show()
214 chunk_map_stats(m, chunk, buffer); in percpu_stats_show()
222 vfree(buffer); in percpu_stats_show()
Dutil.c711 void __user *buffer, size_t *lenp, in overcommit_ratio_handler() argument
716 ret = proc_dointvec(table, write, buffer, lenp, ppos); in overcommit_ratio_handler()
723 void __user *buffer, size_t *lenp, in overcommit_kbytes_handler() argument
728 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in overcommit_kbytes_handler()
843 int get_cmdline(struct task_struct *task, char *buffer, int buflen) in get_cmdline() argument
866 res = access_process_vm(task, arg_start, buffer, len, FOLL_FORCE); in get_cmdline()
872 if (res > 0 && buffer[res-1] != '\0' && len < buflen) { in get_cmdline()
873 len = strnlen(buffer, res); in get_cmdline()
881 buffer+res, len, in get_cmdline()
883 res = strnlen(buffer, res); in get_cmdline()
Dpage-writeback.c515 void __user *buffer, size_t *lenp, in dirty_background_ratio_handler() argument
520 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirty_background_ratio_handler()
527 void __user *buffer, size_t *lenp, in dirty_background_bytes_handler() argument
532 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in dirty_background_bytes_handler()
539 void __user *buffer, size_t *lenp, in dirty_ratio_handler() argument
545 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirty_ratio_handler()
554 void __user *buffer, size_t *lenp, in dirty_bytes_handler() argument
560 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in dirty_bytes_handler()
1975 void __user *buffer, size_t *length, loff_t *ppos) in dirty_writeback_centisecs_handler() argument
1980 ret = proc_dointvec(table, write, buffer, length, ppos); in dirty_writeback_centisecs_handler()
Dshuffle.c36 static int shuffle_show(char *buffer, const struct kernel_param *kp) in shuffle_show() argument
38 return sprintf(buffer, "%c\n", test_bit(SHUFFLE_ENABLE, &shuffle_state) in shuffle_show()
Dpage_alloc.c5508 void __user *buffer, size_t *length, in numa_zonelist_order_handler() argument
5515 return proc_dostring(table, write, buffer, length, ppos); in numa_zonelist_order_handler()
5516 str = memdup_user_nul(buffer, 16); in numa_zonelist_order_handler()
7887 void __user *buffer, size_t *length, loff_t *ppos) in core_initcall()
7891 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in core_initcall()
7903 void __user *buffer, size_t *length, loff_t *ppos) in watermark_boost_factor_sysctl_handler() argument
7907 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in watermark_boost_factor_sysctl_handler()
7915 void __user *buffer, size_t *length, loff_t *ppos) in watermark_scale_factor_sysctl_handler() argument
7919 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in watermark_scale_factor_sysctl_handler()
7945 void __user *buffer, size_t *length, loff_t *ppos) in sysctl_min_unmapped_ratio_sysctl_handler() argument
[all …]
Dmempolicy.c2925 void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) in mpol_to_str() argument
2927 char *p = buffer; in mpol_to_str()
2959 p += snprintf(p, buffer + maxlen - p, "="); in mpol_to_str()
2965 p += snprintf(p, buffer + maxlen - p, "static"); in mpol_to_str()
2967 p += snprintf(p, buffer + maxlen - p, "relative"); in mpol_to_str()
2971 p += scnprintf(p, buffer + maxlen - p, ":%*pbl", in mpol_to_str()
Dshmem.c1400 char buffer[64]; in shmem_show_mpol() local
1405 mpol_to_str(buffer, sizeof(buffer), mpol); in shmem_show_mpol()
1407 seq_printf(seq, ",mpol=%s", buffer); in shmem_show_mpol()
3229 const char *name, void *buffer, size_t size, in shmem_xattr_handler_get() argument
3235 return simple_xattr_get(&info->xattrs, name, buffer, size); in shmem_xattr_handler_get()
3271 static ssize_t shmem_listxattr(struct dentry *dentry, char *buffer, size_t size) in shmem_listxattr() argument
3274 return simple_xattr_list(d_inode(dentry), &info->xattrs, buffer, size); in shmem_listxattr()
Dhugetlb.c3087 void __user *buffer, size_t *length, loff_t *ppos) in hugetlb_sysctl_handler_common() argument
3098 ret = proc_doulongvec_minmax(table, write, buffer, length, ppos); in hugetlb_sysctl_handler_common()
3110 void __user *buffer, size_t *length, loff_t *ppos) in hugetlb_sysctl_handler() argument
3114 buffer, length, ppos); in hugetlb_sysctl_handler()
3119 void __user *buffer, size_t *length, loff_t *ppos) in hugetlb_mempolicy_sysctl_handler() argument
3122 buffer, length, ppos); in hugetlb_mempolicy_sysctl_handler()
3127 void __user *buffer, in hugetlb_overcommit_handler() argument
3144 ret = proc_doulongvec_minmax(table, write, buffer, length, ppos); in hugetlb_overcommit_handler()
Dslub.c5570 char *buffer = NULL; in memcg_propagate_slab_attrs() local
5603 if (buffer) in memcg_propagate_slab_attrs()
5604 buf = buffer; in memcg_propagate_slab_attrs()
5608 buffer = (char *) get_zeroed_page(GFP_KERNEL); in memcg_propagate_slab_attrs()
5609 if (WARN_ON(!buffer)) in memcg_propagate_slab_attrs()
5611 buf = buffer; in memcg_propagate_slab_attrs()
5619 if (buffer) in memcg_propagate_slab_attrs()
5620 free_page((unsigned long)buffer); in memcg_propagate_slab_attrs()
5923 ssize_t slabinfo_write(struct file *file, const char __user *buffer, in slabinfo_write() argument
Dvmstat.c79 void __user *buffer, size_t *length, loff_t *ppos) in sysctl_vm_numa_stat_handler() argument
86 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_vm_numa_stat_handler()
1762 void __user *buffer, size_t *lenp, loff_t *ppos) in vmstat_refresh() argument
Dslab.h260 ssize_t slabinfo_write(struct file *file, const char __user *buffer,
Dslab.c4115 ssize_t slabinfo_write(struct file *file, const char __user *buffer, in slabinfo_write() argument
4124 if (copy_from_user(&kbuf, buffer, count)) in slabinfo_write()
Dcompaction.c2458 void __user *buffer, size_t *length, loff_t *ppos) in sysctl_compaction_handler() argument
Dmemcontrol.c1386 if (!s.buffer) in memory_stat_format()
1486 return s.buffer; in memory_stat_format()
/mm/kasan/
Dreport.c425 char buffer[4 + (BITS_PER_LONG/8)*2]; in print_shadow_for_address() local
428 snprintf(buffer, sizeof(buffer), in print_shadow_for_address()
436 print_hex_dump(KERN_ERR, buffer, in print_shadow_for_address()