Home
last modified time | relevance | path

Searched refs:length (Results 1 – 8 of 8) sorted by relevance

/mm/
Dutil.c160 long length; in strndup_user() local
162 length = strnlen_user(s, n); in strndup_user()
164 if (!length) in strndup_user()
167 if (length > n) in strndup_user()
170 p = kmalloc(length, GFP_KERNEL); in strndup_user()
175 if (copy_from_user(p, s, length)) { in strndup_user()
180 p[length - 1] = '\0'; in strndup_user()
Dpage_cgroup.c283 unsigned long length; member
325 for (idx = 0; idx < ctrl->length; idx++) { in swap_cgroup_prepare()
405 unsigned long length; in swap_cgroup_swapon() local
411 length = ((max_pages/SC_PER_PAGE) + 1); in swap_cgroup_swapon()
412 array_size = length * sizeof(void *); in swap_cgroup_swapon()
421 ctrl->length = length; in swap_cgroup_swapon()
426 ctrl->length = 0; in swap_cgroup_swapon()
436 array_size, length * PAGE_SIZE); in swap_cgroup_swapon()
459 for (i = 0; i < ctrl->length; i++) { in swap_cgroup_swapoff()
466 ctrl->length = 0; in swap_cgroup_swapoff()
Dfilemap_xip.c446 unsigned length; in xip_truncate_page() local
454 length = offset & (blocksize - 1); in xip_truncate_page()
457 if (!length) in xip_truncate_page()
460 length = blocksize - length; in xip_truncate_page()
471 memset(xip_mem + offset, 0, length); in xip_truncate_page()
Dslub.c329 static void print_section(char *text, u8 *addr, unsigned int length) in print_section() argument
337 for (i = 0; i < length; i++) { in print_section()
630 int length; in slab_pad_check() local
637 length = (PAGE_SIZE << compound_order(page)); in slab_pad_check()
638 end = start + length; in slab_pad_check()
639 remainder = length % s->size; in slab_pad_check()
3817 const char *buf, size_t length) in order_store() argument
3830 return length; in order_store()
3898 const char *buf, size_t length) in sanity_checks_store() argument
3903 return length; in sanity_checks_store()
[all …]
Dhugetlb.c1481 size_t *length, loff_t *ppos) in hugetlb_sysctl_handler() argument
1491 proc_doulongvec_minmax(table, write, file, buffer, length, ppos); in hugetlb_sysctl_handler()
1501 size_t *length, loff_t *ppos) in hugetlb_treat_movable_handler() argument
1503 proc_dointvec(table, write, file, buffer, length, ppos); in hugetlb_treat_movable_handler()
1513 size_t *length, loff_t *ppos) in hugetlb_overcommit_handler() argument
1523 proc_doulongvec_minmax(table, write, file, buffer, length, ppos); in hugetlb_overcommit_handler()
2163 unsigned long *position, int *length, int i, in follow_hugetlb_page() argument
2168 int remainder = *length; in follow_hugetlb_page()
2232 *length = remainder; in follow_hugetlb_page()
Dpage_alloc.c2088 struct file *file, void __user *buffer, size_t *length, in numa_zonelist_order_handler() argument
2097 ret = proc_dostring(table, write, file, buffer, length, ppos); in numa_zonelist_order_handler()
4436 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) in module_init()
4438 proc_dointvec(table, write, file, buffer, length, ppos); in module_init()
4446 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) in sysctl_min_unmapped_ratio_sysctl_handler() argument
4451 rc = proc_dointvec_minmax(table, write, file, buffer, length, ppos); in sysctl_min_unmapped_ratio_sysctl_handler()
4462 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) in sysctl_min_slab_ratio_sysctl_handler() argument
4467 rc = proc_dointvec_minmax(table, write, file, buffer, length, ppos); in sysctl_min_slab_ratio_sysctl_handler()
4488 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) in lowmem_reserve_ratio_sysctl_handler() argument
4490 proc_dointvec_minmax(table, write, file, buffer, length, ppos); in lowmem_reserve_ratio_sysctl_handler()
[all …]
Dpage-writeback.c802 struct file *file, void __user *buffer, size_t *length, loff_t *ppos) in dirty_writeback_centisecs_handler() argument
804 proc_dointvec_userhz_jiffies(table, write, file, buffer, length, ppos); in dirty_writeback_centisecs_handler()
Dvmscan.c2594 size_t *length, loff_t *ppos) in scan_unevictable_handler() argument
2596 proc_doulongvec_minmax(table, write, file, buffer, length, ppos); in scan_unevictable_handler()