/mm/ |
H A D | hugetlb_cgroup.c | 257 char *buf, size_t nbytes, loff_t off) 263 buf = strstrip(buf); 275 ret = res_counter_memparse_write_strategy(buf, &val); 289 char *buf, size_t nbytes, loff_t off) 311 static char *mem_fmt(char *buf, int size, unsigned long hsize) argument 314 snprintf(buf, size, "%luGB", hsize >> 30); 316 snprintf(buf, size, "%luMB", hsize >> 20); 318 snprintf(buf, size, "%luKB", hsize >> 10); 319 return buf; 256 hugetlb_cgroup_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) argument 288 hugetlb_cgroup_reset(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) argument 324 char buf[32]; local [all...] |
H A D | util.c | 27 char *buf; local 33 buf = kmalloc_track_caller(len, gfp); 34 if (buf) 35 memcpy(buf, s, len); 36 return buf; 49 char *buf; local 55 buf = kmalloc_track_caller(len+1, gfp); 56 if (buf) { 57 memcpy(buf, s, len); 58 buf[le [all...] |
H A D | slub.c | 643 char buf[100]; local 646 vsnprintf(buf, sizeof(buf), fmt, args); 648 slab_bug(s, "%s", buf); 4002 static int list_locations(struct kmem_cache *s, char *buf, argument 4016 return sprintf(buf, "Out of memory\n"); 4041 len += sprintf(buf + len, "%7ld ", l->count); 4044 len += sprintf(buf + len, "%pS", (void *)l->addr); 4046 len += sprintf(buf + len, "<not-available>"); 4049 len += sprintf(buf 4166 show_slab_objects(struct kmem_cache *s, char *buf, unsigned long flags) argument 4294 slab_size_show(struct kmem_cache *s, char *buf) argument 4300 align_show(struct kmem_cache *s, char *buf) argument 4306 object_size_show(struct kmem_cache *s, char *buf) argument 4312 objs_per_slab_show(struct kmem_cache *s, char *buf) argument 4318 order_store(struct kmem_cache *s, const char *buf, size_t length) argument 4335 order_show(struct kmem_cache *s, char *buf) argument 4341 min_partial_show(struct kmem_cache *s, char *buf) argument 4346 min_partial_store(struct kmem_cache *s, const char *buf, size_t length) argument 4361 cpu_partial_show(struct kmem_cache *s, char *buf) argument 4366 cpu_partial_store(struct kmem_cache *s, const char *buf, size_t length) argument 4384 ctor_show(struct kmem_cache *s, char *buf) argument 4392 aliases_show(struct kmem_cache *s, char *buf) argument 4398 partial_show(struct kmem_cache *s, char *buf) argument 4404 cpu_slabs_show(struct kmem_cache *s, char *buf) argument 4410 objects_show(struct kmem_cache *s, char *buf) argument 4416 objects_partial_show(struct kmem_cache *s, char *buf) argument 4422 slabs_cpu_partial_show(struct kmem_cache *s, char *buf) argument 4453 reclaim_account_show(struct kmem_cache *s, char *buf) argument 4458 reclaim_account_store(struct kmem_cache *s, const char *buf, size_t length) argument 4468 hwcache_align_show(struct kmem_cache *s, char *buf) argument 4475 cache_dma_show(struct kmem_cache *s, char *buf) argument 4482 destroy_by_rcu_show(struct kmem_cache *s, char *buf) argument 4488 reserved_show(struct kmem_cache *s, char *buf) argument 4495 slabs_show(struct kmem_cache *s, char *buf) argument 4501 total_objects_show(struct kmem_cache *s, char *buf) argument 4507 sanity_checks_show(struct kmem_cache *s, char *buf) argument 4512 sanity_checks_store(struct kmem_cache *s, const char *buf, size_t length) argument 4524 trace_show(struct kmem_cache *s, char *buf) argument 4529 trace_store(struct kmem_cache *s, const char *buf, size_t length) argument 4549 red_zone_show(struct kmem_cache *s, char *buf) argument 4554 red_zone_store(struct kmem_cache *s, const char *buf, size_t length) argument 4570 poison_show(struct kmem_cache *s, char *buf) argument 4575 poison_store(struct kmem_cache *s, const char *buf, size_t length) argument 4591 store_user_show(struct kmem_cache *s, char *buf) argument 4596 store_user_store(struct kmem_cache *s, const char *buf, size_t length) argument 4612 validate_show(struct kmem_cache *s, char *buf) argument 4617 validate_store(struct kmem_cache *s, const char *buf, size_t length) argument 4631 alloc_calls_show(struct kmem_cache *s, char *buf) argument 4639 free_calls_show(struct kmem_cache *s, char *buf) argument 4649 failslab_show(struct kmem_cache *s, char *buf) argument 4654 failslab_store(struct kmem_cache *s, const char *buf, size_t length) argument 4668 shrink_show(struct kmem_cache *s, char *buf) argument 4673 shrink_store(struct kmem_cache *s, const char *buf, size_t length) argument 4688 remote_node_defrag_ratio_show(struct kmem_cache *s, char *buf) argument 4693 remote_node_defrag_ratio_store(struct kmem_cache *s, const char *buf, size_t length) argument 4712 show_stat(struct kmem_cache *s, char *buf, enum stat_item si) argument 4869 slab_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 4888 slab_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument 4960 char *buf; local [all...] |
H A D | iov_iter.c | 11 char __user *buf; local 22 buf = iov->iov_base + skip; 25 left = __copy_to_user(buf, from, copy); 32 buf = iov->iov_base; 34 left = __copy_to_user(buf, from, copy); 56 char __user *buf; local 67 buf = iov->iov_base + skip; 70 left = __copy_from_user(to, buf, copy); 77 buf = iov->iov_base; 79 left = __copy_from_user(to, buf, cop 102 char __user *buf; local 183 char __user *buf; local 263 char __user *buf; local 309 char __user *buf = iov->iov_base + base; local 339 char __user *buf = i->iov->iov_base + i->iov_offset; local 399 char __user *buf = i->iov->iov_base + i->iov_offset; local [all...] |
H A D | filemap_xip.c | 55 char __user *buf, 123 left = __copy_to_user(buf+copied, xip_mem+offset, nr); 125 left = __clear_user(buf + copied, nr); 147 xip_file_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos) argument 149 if (!access_ok(VERIFY_WRITE, buf, len)) 153 buf, len, ppos); 324 __xip_file_write(struct file *filp, const char __user *buf, argument 366 __copy_from_user_nocache(xip_mem + offset, buf, bytes); 375 buf += status; 398 xip_file_write(struct file *filp, const char __user *buf, size_ argument 52 do_xip_mapping_read(struct address_space *mapping, struct file_ra_state *_ra, struct file *filp, char __user *buf, size_t len, loff_t *ppos) argument [all...] |
H A D | huge_memory.c | 251 struct kobj_attribute *attr, char *buf, 257 return sprintf(buf, "[always] madvise never\n"); 259 return sprintf(buf, "always [madvise] never\n"); 261 return sprintf(buf, "always madvise [never]\n"); 265 const char *buf, size_t count, 269 if (!memcmp("always", buf, 273 } else if (!memcmp("madvise", buf, 277 } else if (!memcmp("never", buf, 288 struct kobj_attribute *attr, char *buf) 290 return double_flag_show(kobj, attr, buf, 250 double_flag_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf, enum transparent_hugepage_flag enabled, enum transparent_hugepage_flag req_madv) argument 263 double_flag_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count, enum transparent_hugepage_flag enabled, enum transparent_hugepage_flag req_madv) argument 287 enabled_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 294 enabled_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 320 single_flag_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf, enum transparent_hugepage_flag flag) argument 328 single_flag_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count, enum transparent_hugepage_flag flag) argument 355 defrag_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 362 defrag_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 373 use_zero_page_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 379 use_zero_page_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 388 debug_cow_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 394 debug_cow_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 419 scan_sleep_millisecs_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 426 scan_sleep_millisecs_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 446 alloc_sleep_millisecs_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 453 alloc_sleep_millisecs_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 473 pages_to_scan_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 479 pages_to_scan_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 498 pages_collapsed_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 507 full_scans_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 516 khugepaged_defrag_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 522 khugepaged_defrag_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 541 khugepaged_max_ptes_none_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 547 khugepaged_max_ptes_none_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument [all...] |
H A D | ksm.c | 2085 struct kobj_attribute *attr, char *buf) 2087 return sprintf(buf, "%u\n", ksm_thread_sleep_millisecs); 2092 const char *buf, size_t count) 2097 err = kstrtoul(buf, 10, &msecs); 2108 struct kobj_attribute *attr, char *buf) 2110 return sprintf(buf, "%u\n", ksm_thread_pages_to_scan); 2115 const char *buf, size_t count) 2120 err = kstrtoul(buf, 10, &nr_pages); 2131 char *buf) 2133 return sprintf(buf, " 2084 sleep_millisecs_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 2090 sleep_millisecs_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 2107 pages_to_scan_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 2113 pages_to_scan_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 2130 run_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 2136 run_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 2179 merge_across_nodes_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 2185 merge_across_nodes_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 2204 struct rb_root *buf; local 2236 pages_shared_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 2243 pages_sharing_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 2250 pages_unshared_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 2257 pages_volatile_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 2274 full_scans_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument [all...] |
H A D | vmalloc.c | 1872 * small helper routine , copy contents to buf from addr. 1876 static int aligned_vread(char *buf, char *addr, unsigned long count) argument 1902 memcpy(buf, map + offset, length); 1905 memset(buf, 0, length); 1908 buf += length; 1915 static int aligned_vwrite(char *buf, char *addr, unsigned long count) argument 1941 memcpy(map + offset, buf, length); 1945 buf += length; 1954 * @buf: buffer for reading data 1958 * Returns # of bytes which addr and buf shoul 1978 vread(char *buf, char *addr, unsigned long count) argument 2059 vwrite(char *buf, char *addr, unsigned long count) argument [all...] |
H A D | kmemleak.c | 1653 char buf[64]; local 1657 buf_size = min(size, (sizeof(buf) - 1)); 1658 if (strncpy_from_user(buf, user_buf, buf_size) < 0) 1660 buf[buf_size] = 0; 1666 if (strncmp(buf, "clear", 5) == 0) { 1679 if (strncmp(buf, "off", 3) == 0) 1681 else if (strncmp(buf, "stack=on", 8) == 0) 1683 else if (strncmp(buf, "stack=off", 9) == 0) 1685 else if (strncmp(buf, "scan=on", 7) == 0) 1687 else if (strncmp(buf, "sca [all...] |
H A D | backing-dev.c | 159 const char *buf, size_t count) 165 ret = kstrtoul(buf, 10, &read_ahead_kb); 189 struct device_attribute *attr, const char *buf, size_t count) 195 ret = kstrtouint(buf, 10, &ratio); 208 struct device_attribute *attr, const char *buf, size_t count) 214 ret = kstrtouint(buf, 10, &ratio); 157 read_ahead_kb_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 188 min_ratio_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 207 max_ratio_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
|
H A D | hugetlb.c | 1532 static char * __init memfmt(char *buf, unsigned long n) argument 1535 sprintf(buf, "%lu GB", n >> 30); 1537 sprintf(buf, "%lu MB", n >> 20); 1539 sprintf(buf, "%lu KB", n >> 10); 1540 return buf; 1548 char buf[32]; local 1550 memfmt(buf, huge_page_size(h)), 1724 struct kobj_attribute *attr, char *buf) 1736 return sprintf(buf, "%lu\n", nr_huge_pages); 1782 struct kobject *kobj, const char *buf, 1723 nr_hugepages_show_common(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 1781 nr_hugepages_store_common(bool obey_mempolicy, struct kobject *kobj, const char *buf, size_t len) argument 1798 nr_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 1804 nr_hugepages_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t len) argument 1817 nr_hugepages_mempolicy_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 1823 nr_hugepages_mempolicy_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t len) argument 1832 nr_overcommit_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 1839 nr_overcommit_hugepages_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 1861 free_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 1878 resv_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 1886 surplus_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 2349 hugetlb_report_node_meminfo(int nid, char *buf) argument [all...] |
H A D | nommu.c | 287 long vread(char *buf, char *addr, unsigned long count) argument 290 if ((unsigned long) buf + count < count) 291 count = -(unsigned long) buf; 293 memcpy(buf, addr, count); 297 long vwrite(char *buf, char *addr, unsigned long count) argument 303 memcpy(addr, buf, count); 2006 unsigned long addr, void *buf, int len, int write) 2022 (void *) addr, buf, len); 2025 buf, (void *) addr, len); 2041 * @buf 2005 __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm, unsigned long addr, void *buf, int len, int write) argument 2047 access_remote_vm(struct mm_struct *mm, unsigned long addr, void *buf, int len, int write) argument 2057 access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write) argument [all...] |
H A D | zsmalloc.c | 805 char *buf = area->vm_buf; local 819 memcpy(buf, addr + off, sizes[0]); 822 memcpy(buf + sizes[0], addr, sizes[1]); 833 char *buf = area->vm_buf; local 844 memcpy(addr + off, buf, sizes[0]); 847 memcpy(addr, buf + sizes[0], sizes[1]);
|
H A D | zswap.c | 648 char *buf; local 699 buf = (u8 *)(zhdr + 1); 700 memcpy(buf, dst, dlen);
|
H A D | dmapool.c | 68 show_pools(struct device *dev, struct device_attribute *attr, char *buf) argument 76 next = buf;
|
H A D | memory.c | 3544 void *buf, int len, int write) 3556 memcpy_toio(maddr + offset, buf, len); 3558 memcpy_fromio(buf, maddr + offset, len); 3571 unsigned long addr, void *buf, int len, int write) 3574 void *old_buf = buf; 3597 ret = vma->vm_ops->access(vma, addr, buf, 3612 maddr + offset, buf, bytes); 3616 buf, maddr + offset, bytes); 3622 buf += bytes; 3627 return buf 3543 generic_access_phys(struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write) argument 3570 __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm, unsigned long addr, void *buf, int len, int write) argument 3640 access_remote_vm(struct mm_struct *mm, unsigned long addr, void *buf, int len, int write) argument 3651 access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write) argument 3686 char *buf = (char *)__get_free_page(GFP_KERNEL); local [all...] |
H A D | memcontrol.c | 3953 char *buf, size_t nbytes, 4187 char *buf, size_t nbytes, loff_t off) 4195 buf = strstrip(buf); 4206 ret = res_counter_memparse_write_strategy(buf, &val); 4219 ret = res_counter_memparse_write_strategy(buf, &val); 4263 static ssize_t mem_cgroup_reset(struct kernfs_open_file *of, char *buf, argument 5000 char *buf, size_t nbytes, loff_t off) 5013 buf = strstrip(buf); 3952 mem_cgroup_force_empty_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) argument 4186 mem_cgroup_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) argument 4999 memcg_write_event_control(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) argument [all...] |
H A D | shmem.c | 2182 static int shmem_statfs(struct dentry *dentry, struct kstatfs *buf) argument 2186 buf->f_type = TMPFS_MAGIC; 2187 buf->f_bsize = PAGE_CACHE_SIZE; 2188 buf->f_namelen = NAME_MAX; 2190 buf->f_blocks = sbinfo->max_blocks; 2191 buf->f_bavail = 2192 buf->f_bfree = sbinfo->max_blocks - 2196 buf->f_files = sbinfo->max_inodes; 2197 buf->f_ffree = sbinfo->free_inodes;
|
H A D | bootmem.c | 43 static int __init bootmem_debug_setup(char *buf) argument
|
H A D | compaction.c | 1496 const char *buf, size_t count) 1494 sysfs_compact_node(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
|
H A D | page_alloc.c | 442 static int __init debug_guardpage_minorder_setup(char *buf) argument 446 if (kstrtoul(buf, 10, &res) < 0 || res > MAX_ORDER / 2) {
|