Searched defs:buf (Results 1 - 18 of 18) sorted by relevance

/mm/
H A Ddmapool.c69 show_pools(struct device *dev, struct device_attribute *attr, char *buf) argument
77 next = buf;
H A Dfilemap_xip.c55 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);
321 __xip_file_write(struct file *filp, const char __user *buf, argument
363 __copy_from_user_nocache(xip_mem + offset, buf, bytes);
372 buf += status;
395 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 Dutil.c22 char *buf; local
28 buf = kmalloc_track_caller(len, gfp);
29 if (buf)
30 memcpy(buf, s, len);
31 return buf;
44 char *buf; local
50 buf = kmalloc_track_caller(len+1, gfp);
51 if (buf) {
52 memcpy(buf, s, len);
53 buf[le
[all...]
H A Dashmem.c214 static ssize_t ashmem_read(struct file *file, char __user *buf, argument
232 ret = asma->file->f_op->read(asma->file, buf, len, pos);
H A Dbacking-dev.c143 const char *buf, size_t count)
150 read_ahead_kb = simple_strtoul(buf, &end, 10);
151 if (*buf && (end[0] == '\0' || (end[0] == '\n' && end[1] == '\0'))) {
172 struct device_attribute *attr, const char *buf, size_t count)
179 ratio = simple_strtoul(buf, &end, 10);
180 if (*buf && (end[0] == '\0' || (end[0] == '\n' && end[1] == '\0'))) {
190 struct device_attribute *attr, const char *buf, size_t count)
197 ratio = simple_strtoul(buf, &end, 10);
198 if (*buf && (end[0] == '\0' || (end[0] == '\n' && end[1] == '\0'))) {
141 read_ahead_kb_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
171 min_ratio_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
189 max_ratio_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
H A Dbootmem.c43 static int __init bootmem_debug_setup(char *buf) argument
H A Dcompaction.c752 const char *buf, size_t count)
750 sysfs_compact_node(struct sys_device *dev, struct sysdev_attribute *attr, const char *buf, size_t count) argument
H A Dfilemap.c1299 if (!fault_in_pages_writeable(desc->arg.buf, size)) {
1301 left = __copy_to_user_inatomic(desc->arg.buf,
1310 left = __copy_to_user(desc->arg.buf, kaddr + offset, size);
1320 desc->arg.buf += size;
1449 desc.arg.buf = iov[seg].iov_base + offset;
1999 char __user *buf = iov->iov_base + base; local
2003 left = __copy_from_user_inatomic(vaddr, buf, copy);
2030 char __user *buf = i->iov->iov_base + i->iov_offset; local
2031 left = __copy_from_user_inatomic(kaddr + offset, buf, bytes);
2058 char __user *buf local
2115 char __user *buf = i->iov->iov_base + i->iov_offset; local
[all...]
H A Dhuge_memory.c172 struct kobj_attribute *attr, char *buf,
178 return sprintf(buf, "[always] madvise never\n");
180 return sprintf(buf, "always [madvise] never\n");
182 return sprintf(buf, "always madvise [never]\n");
186 const char *buf, size_t count,
190 if (!memcmp("always", buf,
194 } else if (!memcmp("madvise", buf,
198 } else if (!memcmp("never", buf,
209 struct kobj_attribute *attr, char *buf)
211 return double_flag_show(kobj, attr, buf,
171 double_flag_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf, enum transparent_hugepage_flag enabled, enum transparent_hugepage_flag req_madv) argument
184 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
208 enabled_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
215 enabled_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
243 single_flag_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf, enum transparent_hugepage_flag flag) argument
251 single_flag_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count, enum transparent_hugepage_flag flag) argument
278 defrag_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
285 defrag_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
297 debug_cow_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
303 debug_cow_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
327 scan_sleep_millisecs_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
334 scan_sleep_millisecs_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
354 alloc_sleep_millisecs_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
361 alloc_sleep_millisecs_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
381 pages_to_scan_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
387 pages_to_scan_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
406 pages_collapsed_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
415 full_scans_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
424 khugepaged_defrag_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
430 khugepaged_defrag_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
449 khugepaged_max_ptes_none_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
455 khugepaged_max_ptes_none_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
[all...]
H A Dkmemleak.c1542 char buf[64]; local
1546 buf_size = min(size, (sizeof(buf) - 1));
1547 if (strncpy_from_user(buf, user_buf, buf_size) < 0)
1549 buf[buf_size] = 0;
1555 if (strncmp(buf, "off", 3) == 0)
1557 else if (strncmp(buf, "stack=on", 8) == 0)
1559 else if (strncmp(buf, "stack=off", 9) == 0)
1561 else if (strncmp(buf, "scan=on", 7) == 0)
1563 else if (strncmp(buf, "scan=off", 8) == 0)
1565 else if (strncmp(buf, "sca
[all...]
H A Dksm.c1830 struct kobj_attribute *attr, char *buf)
1832 return sprintf(buf, "%u\n", ksm_thread_sleep_millisecs);
1837 const char *buf, size_t count)
1842 err = strict_strtoul(buf, 10, &msecs);
1853 struct kobj_attribute *attr, char *buf)
1855 return sprintf(buf, "%u\n", ksm_thread_pages_to_scan);
1860 const char *buf, size_t count)
1865 err = strict_strtoul(buf, 10, &nr_pages);
1876 char *buf)
1878 return sprintf(buf, "
1829 sleep_millisecs_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1835 sleep_millisecs_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
1852 pages_to_scan_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1858 pages_to_scan_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
1875 run_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1881 run_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
1924 pages_shared_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1931 pages_sharing_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1938 pages_unshared_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1945 pages_volatile_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1962 full_scans_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
[all...]
H A Dmemory.c3742 void *buf, int len, int write)
3754 memcpy_toio(maddr + offset, buf, len);
3756 memcpy_fromio(buf, maddr + offset, len);
3768 unsigned long addr, void *buf, int len, int write)
3771 void *old_buf = buf;
3792 ret = vma->vm_ops->access(vma, addr, buf,
3807 maddr + offset, buf, bytes);
3811 buf, maddr + offset, bytes);
3817 buf += bytes;
3822 return buf
3741 generic_access_phys(struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write) argument
3767 __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm, unsigned long addr, void *buf, int len, int write) argument
3835 access_remote_vm(struct mm_struct *mm, unsigned long addr, void *buf, int len, int write) argument
3846 access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write) argument
3881 char *buf = (char *)__get_free_page(GFP_KERNEL); local
[all...]
H A Dnommu.c266 long vread(char *buf, char *addr, unsigned long count) argument
268 memcpy(buf, addr, count);
272 long vwrite(char *buf, char *addr, unsigned long count) argument
278 memcpy(addr, buf, count);
1974 unsigned long addr, void *buf, int len, int write)
1990 (void *) addr, buf, len);
1993 buf, (void *) addr, len);
2009 * @buf: source or destination buffer
2016 void *buf, int len, int write)
2018 return __access_remote_vm(NULL, mm, addr, buf, le
1973 __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm, unsigned long addr, void *buf, int len, int write) argument
2015 access_remote_vm(struct mm_struct *mm, unsigned long addr, void *buf, int len, int write) argument
2025 access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write) argument
[all...]
H A Dvmalloc.c1864 * small helper routine , copy contents to buf from addr.
1868 static int aligned_vread(char *buf, char *addr, unsigned long count) argument
1894 memcpy(buf, map + offset, length);
1897 memset(buf, 0, length);
1900 buf += length;
1907 static int aligned_vwrite(char *buf, char *addr, unsigned long count) argument
1933 memcpy(map + offset, buf, length);
1937 buf += length;
1946 * @buf: buffer for reading data
1950 * Returns # of bytes which addr and buf shoul
1972 vread(char *buf, char *addr, unsigned long count) argument
2047 vwrite(char *buf, char *addr, unsigned long count) argument
[all...]
H A Dhugetlb.c1152 static char * __init memfmt(char *buf, unsigned long n) argument
1155 sprintf(buf, "%lu GB", n >> 30);
1157 sprintf(buf, "%lu MB", n >> 20);
1159 sprintf(buf, "%lu KB", n >> 10);
1160 return buf;
1168 char buf[32]; local
1171 memfmt(buf, huge_page_size(h)),
1361 struct kobj_attribute *attr, char *buf)
1373 return sprintf(buf, "%lu\n", nr_huge_pages);
1378 const char *buf, size_
1360 nr_hugepages_show_common(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1376 nr_hugepages_store_common(bool obey_mempolicy, struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t len) argument
1426 nr_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1432 nr_hugepages_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t len) argument
1445 nr_hugepages_mempolicy_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1451 nr_hugepages_mempolicy_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t len) argument
1460 nr_overcommit_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1467 nr_overcommit_hugepages_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument
1489 free_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1506 resv_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1514 surplus_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument
1987 hugetlb_report_node_meminfo(int nid, char *buf) argument
[all...]
H A Dshmem.c1832 desc.arg.buf = iov[seg].iov_base;
1849 static int shmem_statfs(struct dentry *dentry, struct kstatfs *buf) argument
1853 buf->f_type = TMPFS_MAGIC;
1854 buf->f_bsize = PAGE_CACHE_SIZE;
1855 buf->f_namelen = NAME_MAX;
1857 buf->f_blocks = sbinfo->max_blocks;
1858 buf->f_bavail = buf->f_bfree =
1862 buf->f_files = sbinfo->max_inodes;
1863 buf
[all...]
H A Dvmscan.c3400 char *buf)
3402 return sprintf(buf, "0\n"); /* always zero; should fit... */
3407 const char *buf, size_t count)
3412 unsigned long req = strict_strtoul(buf, 10, &res);
3398 read_scan_unevictable_node(struct sys_device *dev, struct sysdev_attribute *attr, char *buf) argument
3405 write_scan_unevictable_node(struct sys_device *dev, struct sysdev_attribute *attr, const char *buf, size_t count) argument
H A Dslub.c468 char buf[100]; local
471 vsnprintf(buf, sizeof(buf), fmt, args);
475 printk(KERN_ERR "BUG %s: %s\n", s->name, buf);
483 char buf[100]; local
486 vsnprintf(buf, sizeof(buf), fmt, args);
488 printk(KERN_ERR "FIX %s: %s\n", s->name, buf);
537 char buf[100]; local
540 vsnprintf(buf, sizeo
3800 list_locations(struct kmem_cache *s, char *buf, enum track_item alloc) argument
3965 show_slab_objects(struct kmem_cache *s, char *buf, unsigned long flags) argument
4083 slab_size_show(struct kmem_cache *s, char *buf) argument
4089 align_show(struct kmem_cache *s, char *buf) argument
4095 object_size_show(struct kmem_cache *s, char *buf) argument
4101 objs_per_slab_show(struct kmem_cache *s, char *buf) argument
4107 order_store(struct kmem_cache *s, const char *buf, size_t length) argument
4124 order_show(struct kmem_cache *s, char *buf) argument
4130 min_partial_show(struct kmem_cache *s, char *buf) argument
4135 min_partial_store(struct kmem_cache *s, const char *buf, size_t length) argument
4150 ctor_show(struct kmem_cache *s, char *buf) argument
4158 aliases_show(struct kmem_cache *s, char *buf) argument
4164 partial_show(struct kmem_cache *s, char *buf) argument
4170 cpu_slabs_show(struct kmem_cache *s, char *buf) argument
4176 objects_show(struct kmem_cache *s, char *buf) argument
4182 objects_partial_show(struct kmem_cache *s, char *buf) argument
4188 reclaim_account_show(struct kmem_cache *s, char *buf) argument
4193 reclaim_account_store(struct kmem_cache *s, const char *buf, size_t length) argument
4203 hwcache_align_show(struct kmem_cache *s, char *buf) argument
4210 cache_dma_show(struct kmem_cache *s, char *buf) argument
4217 destroy_by_rcu_show(struct kmem_cache *s, char *buf) argument
4223 reserved_show(struct kmem_cache *s, char *buf) argument
4230 slabs_show(struct kmem_cache *s, char *buf) argument
4236 total_objects_show(struct kmem_cache *s, char *buf) argument
4242 sanity_checks_show(struct kmem_cache *s, char *buf) argument
4247 sanity_checks_store(struct kmem_cache *s, const char *buf, size_t length) argument
4257 trace_show(struct kmem_cache *s, char *buf) argument
4262 trace_store(struct kmem_cache *s, const char *buf, size_t length) argument
4272 red_zone_show(struct kmem_cache *s, char *buf) argument
4277 red_zone_store(struct kmem_cache *s, const char *buf, size_t length) argument
4291 poison_show(struct kmem_cache *s, char *buf) argument
4296 poison_store(struct kmem_cache *s, const char *buf, size_t length) argument
4310 store_user_show(struct kmem_cache *s, char *buf) argument
4315 store_user_store(struct kmem_cache *s, const char *buf, size_t length) argument
4329 validate_show(struct kmem_cache *s, char *buf) argument
4334 validate_store(struct kmem_cache *s, const char *buf, size_t length) argument
4348 alloc_calls_show(struct kmem_cache *s, char *buf) argument
4356 free_calls_show(struct kmem_cache *s, char *buf) argument
4366 failslab_show(struct kmem_cache *s, char *buf) argument
4371 failslab_store(struct kmem_cache *s, const char *buf, size_t length) argument
4382 shrink_show(struct kmem_cache *s, char *buf) argument
4387 shrink_store(struct kmem_cache *s, const char *buf, size_t length) argument
4402 remote_node_defrag_ratio_show(struct kmem_cache *s, char *buf) argument
4407 remote_node_defrag_ratio_store(struct kmem_cache *s, const char *buf, size_t length) argument
4426 show_stat(struct kmem_cache *s, char *buf, enum stat_item si) argument
4565 slab_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
4584 slab_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument
[all...]

Completed in 168 milliseconds