Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 22 of 22) 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()
215 chunk_map_stats(m, chunk, buffer); in percpu_stats_show()
221 vfree(buffer); in percpu_stats_show()
Dpage_pinner.c51 struct captured_pinner *buffer; member
91 pp_buffer.buffer = kvmalloc_array(pp_buf_size, sizeof(*pp_buffer.buffer), in init_page_pinner()
93 if (!pp_buffer.buffer) { in init_page_pinner()
149 pp_buf->buffer[idx] = *record; in add_record()
160 if (!pp_buffer.buffer) in __free_page_pinner()
348 record = pp_buffer.buffer[idx]; in read_buffer()
391 old = pp_buffer.buffer; in buffer_size_set()
392 pp_buffer.buffer = new; in buffer_size_set()
Dutil.c864 int overcommit_ratio_handler(struct ctl_table *table, int write, void *buffer, in overcommit_ratio_handler() argument
869 ret = proc_dointvec(table, write, buffer, lenp, ppos); in overcommit_ratio_handler()
880 int overcommit_policy_handler(struct ctl_table *table, int write, void *buffer, in overcommit_policy_handler() argument
901 ret = proc_dointvec_minmax(&t, write, buffer, lenp, ppos); in overcommit_policy_handler()
910 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in overcommit_policy_handler()
916 int overcommit_kbytes_handler(struct ctl_table *table, int write, void *buffer, in overcommit_kbytes_handler() argument
921 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in overcommit_kbytes_handler()
1037 int get_cmdline(struct task_struct *task, char *buffer, int buflen) in get_cmdline() argument
1060 res = access_process_vm(task, arg_start, buffer, len, FOLL_FORCE); in get_cmdline()
1066 if (res > 0 && buffer[res-1] != '\0' && len < buflen) { in get_cmdline()
[all …]
Dshuffle.c15 static int shuffle_show(char *buffer, const struct kernel_param *kp) in shuffle_show() argument
17 return sprintf(buffer, "%c\n", shuffle_param ? 'Y' : 'N'); in shuffle_show()
Dpage-writeback.c507 void *buffer, size_t *lenp, loff_t *ppos) in dirty_background_ratio_handler() argument
511 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirty_background_ratio_handler()
518 void *buffer, size_t *lenp, loff_t *ppos) in dirty_background_bytes_handler() argument
522 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in dirty_background_bytes_handler()
528 int dirty_ratio_handler(struct ctl_table *table, int write, void *buffer, in dirty_ratio_handler() argument
534 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirty_ratio_handler()
543 void *buffer, size_t *lenp, loff_t *ppos) in dirty_bytes_handler() argument
548 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in dirty_bytes_handler()
2000 void *buffer, size_t *length, loff_t *ppos) in dirty_writeback_centisecs_handler() argument
2005 ret = proc_dointvec(table, write, buffer, length, ppos); in dirty_writeback_centisecs_handler()
Dmempolicy.c2928 void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) in mpol_to_str() argument
2930 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()
Dpage_alloc.c6460 void *buffer, size_t *length, loff_t *ppos) in numa_zonelist_order_handler() argument
6463 return __parse_numa_zonelist_order(buffer); in numa_zonelist_order_handler()
6464 return proc_dostring(table, write, buffer, length, ppos); in numa_zonelist_order_handler()
8864 void *buffer, size_t *length, loff_t *ppos) in postcore_initcall()
8868 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in postcore_initcall()
8880 void *buffer, size_t *length, loff_t *ppos) in watermark_scale_factor_sysctl_handler() argument
8884 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in watermark_scale_factor_sysctl_handler()
8910 void *buffer, size_t *length, loff_t *ppos) in sysctl_min_unmapped_ratio_sysctl_handler() argument
8914 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_min_unmapped_ratio_sysctl_handler()
8937 void *buffer, size_t *length, loff_t *ppos) in sysctl_min_slab_ratio_sysctl_handler() argument
[all …]
Dhugetlb.c3903 void *buffer, size_t *length, in proc_hugetlb_doulongvec_minmax() argument
3915 return proc_doulongvec_minmax(&dup_table, write, buffer, length, ppos); in proc_hugetlb_doulongvec_minmax()
3920 void *buffer, size_t *length, loff_t *ppos) in hugetlb_sysctl_handler_common() argument
3929 ret = proc_hugetlb_doulongvec_minmax(table, write, buffer, length, ppos, in hugetlb_sysctl_handler_common()
3942 void *buffer, size_t *length, loff_t *ppos) in hugetlb_sysctl_handler() argument
3946 buffer, length, ppos); in hugetlb_sysctl_handler()
3951 void *buffer, size_t *length, loff_t *ppos) in hugetlb_mempolicy_sysctl_handler() argument
3954 buffer, length, ppos); in hugetlb_mempolicy_sysctl_handler()
3959 void *buffer, size_t *length, loff_t *ppos) in hugetlb_overcommit_handler() argument
3973 ret = proc_hugetlb_doulongvec_minmax(table, write, buffer, length, ppos, in hugetlb_overcommit_handler()
Dshmem.c1466 char buffer[64]; in shmem_show_mpol() local
1471 mpol_to_str(buffer, sizeof(buffer), mpol); in shmem_show_mpol()
1473 seq_printf(seq, ",mpol=%s", buffer); in shmem_show_mpol()
3212 const char *name, void *buffer, size_t size) in shmem_xattr_handler_get() argument
3217 return simple_xattr_get(&info->xattrs, name, buffer, size); in shmem_xattr_handler_get()
3254 static ssize_t shmem_listxattr(struct dentry *dentry, char *buffer, size_t size) in shmem_listxattr() argument
3257 return simple_xattr_list(d_inode(dentry), &info->xattrs, buffer, size); in shmem_listxattr()
Dvmstat.c78 void *buffer, size_t *length, loff_t *ppos) in sysctl_vm_numa_stat_handler() argument
85 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_vm_numa_stat_handler()
1875 void *buffer, size_t *lenp, loff_t *ppos) in vmstat_refresh() argument
Dcompaction.c2790 void *buffer, size_t *length, loff_t *ppos) in compaction_proactiveness_sysctl_handler() argument
2794 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in compaction_proactiveness_sysctl_handler()
2818 void *buffer, size_t *length, loff_t *ppos) in sysctl_compaction_handler() argument
Dslab.h211 ssize_t slabinfo_write(struct file *file, const char __user *buffer,
Dmemory_hotplug.c75 static int get_online_policy(char *buffer, const struct kernel_param *kp) in get_online_policy() argument
77 return sprintf(buffer, "%s\n", online_policy_to_str[*((int *)kp->arg)]); in get_online_policy()
Dslab.c4134 ssize_t slabinfo_write(struct file *file, const char __user *buffer, in slabinfo_write() argument
4143 if (copy_from_user(&kbuf, buffer, count)) in slabinfo_write()
Dmemcontrol.c1483 if (!s.buffer) in memory_stat_format()
1544 return s.buffer; in memory_stat_format()
Dslub.c6279 ssize_t slabinfo_write(struct file *file, const char __user *buffer, in slabinfo_write() argument
/mm/kasan/
Dreport_hw_tags.c24 void kasan_metadata_fetch_row(char *buffer, void *row) in kasan_metadata_fetch_row() argument
29 buffer[i] = hw_get_mem_tag(row + i * KASAN_GRANULE_SIZE); in kasan_metadata_fetch_row()
Dreport_sw_tags.c48 void kasan_metadata_fetch_row(char *buffer, void *row) in kasan_metadata_fetch_row() argument
50 memcpy(buffer, kasan_mem_to_shadow(row), META_BYTES_PER_ROW); in kasan_metadata_fetch_row()
Dreport.c388 char buffer[4 + (BITS_PER_LONG / 8) * 2]; in print_memory_metadata() local
391 snprintf(buffer, sizeof(buffer), in print_memory_metadata()
401 print_hex_dump(KERN_ERR, buffer, in print_memory_metadata()
Dreport_generic.c154 void kasan_metadata_fetch_row(char *buffer, void *row) in kasan_metadata_fetch_row() argument
156 memcpy(buffer, kasan_mem_to_shadow(row), META_BYTES_PER_ROW); in kasan_metadata_fetch_row()
Dkasan.h333 void kasan_metadata_fetch_row(char *buffer, void *row);
/mm/kfence/
Dcore.c74 static int param_get_sample_interval(char *buffer, const struct kernel_param *kp) in param_get_sample_interval() argument
77 return sprintf(buffer, "0\n"); in param_get_sample_interval()
79 return param_get_ulong(buffer, kp); in param_get_sample_interval()