/mm/ |
D | cma_sysfs.c | 30 static inline struct cma *cma_from_kobj(struct kobject *kobj) in cma_from_kobj() argument 32 return container_of(kobj, struct cma_kobject, kobj)->cma; in cma_from_kobj() 35 static ssize_t alloc_pages_success_show(struct kobject *kobj, in alloc_pages_success_show() argument 38 struct cma *cma = cma_from_kobj(kobj); in alloc_pages_success_show() 45 static ssize_t alloc_pages_fail_show(struct kobject *kobj, in alloc_pages_fail_show() argument 48 struct cma *cma = cma_from_kobj(kobj); in alloc_pages_fail_show() 54 static void cma_kobj_release(struct kobject *kobj) in cma_kobj_release() argument 56 struct cma *cma = cma_from_kobj(kobj); in cma_kobj_release() 100 err = kobject_init_and_add(&cma_kobj->kobj, &cma_ktype, in cma_sysfs_init() 103 kobject_put(&cma_kobj->kobj); in cma_sysfs_init() [all …]
|
D | khugepaged.c | 123 static ssize_t scan_sleep_millisecs_show(struct kobject *kobj, in scan_sleep_millisecs_show() argument 130 static ssize_t scan_sleep_millisecs_store(struct kobject *kobj, in scan_sleep_millisecs_store() argument 151 static ssize_t alloc_sleep_millisecs_show(struct kobject *kobj, in alloc_sleep_millisecs_show() argument 158 static ssize_t alloc_sleep_millisecs_store(struct kobject *kobj, in alloc_sleep_millisecs_store() argument 179 static ssize_t pages_to_scan_show(struct kobject *kobj, in pages_to_scan_show() argument 185 static ssize_t pages_to_scan_store(struct kobject *kobj, in pages_to_scan_store() argument 204 static ssize_t pages_collapsed_show(struct kobject *kobj, in pages_collapsed_show() argument 213 static ssize_t full_scans_show(struct kobject *kobj, in full_scans_show() argument 222 static ssize_t khugepaged_defrag_show(struct kobject *kobj, in khugepaged_defrag_show() argument 225 return single_hugepage_flag_show(kobj, attr, buf, in khugepaged_defrag_show() [all …]
|
D | ksm.c | 2840 static ssize_t sleep_millisecs_show(struct kobject *kobj, in sleep_millisecs_show() argument 2846 static ssize_t sleep_millisecs_store(struct kobject *kobj, in sleep_millisecs_store() argument 2864 static ssize_t pages_to_scan_show(struct kobject *kobj, in pages_to_scan_show() argument 2870 static ssize_t pages_to_scan_store(struct kobject *kobj, in pages_to_scan_store() argument 2887 static ssize_t run_show(struct kobject *kobj, struct kobj_attribute *attr, in run_show() argument 2893 static ssize_t run_store(struct kobject *kobj, struct kobj_attribute *attr, in run_store() argument 2936 static ssize_t merge_across_nodes_show(struct kobject *kobj, in merge_across_nodes_show() argument 2942 static ssize_t merge_across_nodes_store(struct kobject *kobj, in merge_across_nodes_store() argument 2993 static ssize_t use_zero_pages_show(struct kobject *kobj, in use_zero_pages_show() argument 2998 static ssize_t use_zero_pages_store(struct kobject *kobj, in use_zero_pages_store() argument [all …]
|
D | hugetlb.c | 2791 static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp); 2793 static struct hstate *kobj_to_hstate(struct kobject *kobj, int *nidp) in kobj_to_hstate() argument 2798 if (hstate_kobjs[i] == kobj) { in kobj_to_hstate() 2804 return kobj_to_node_hstate(kobj, nidp); in kobj_to_hstate() 2807 static ssize_t nr_hugepages_show_common(struct kobject *kobj, in nr_hugepages_show_common() argument 2814 h = kobj_to_hstate(kobj, &nid); in nr_hugepages_show_common() 2857 struct kobject *kobj, const char *buf, in nr_hugepages_store_common() argument 2869 h = kobj_to_hstate(kobj, &nid); in nr_hugepages_store_common() 2873 static ssize_t nr_hugepages_show(struct kobject *kobj, in nr_hugepages_show() argument 2876 return nr_hugepages_show_common(kobj, attr, buf); in nr_hugepages_show() [all …]
|
D | page_idle.c | 118 static ssize_t page_idle_bitmap_read(struct file *file, struct kobject *kobj, in page_idle_bitmap_read() argument 163 static ssize_t page_idle_bitmap_write(struct file *file, struct kobject *kobj, in page_idle_bitmap_write() argument
|
D | huge_memory.c | 175 static ssize_t enabled_show(struct kobject *kobj, in enabled_show() argument 186 static ssize_t enabled_store(struct kobject *kobj, in enabled_store() argument 214 ssize_t single_hugepage_flag_show(struct kobject *kobj, in single_hugepage_flag_show() argument 222 ssize_t single_hugepage_flag_store(struct kobject *kobj, in single_hugepage_flag_store() argument 244 static ssize_t defrag_show(struct kobject *kobj, in defrag_show() argument 258 static ssize_t defrag_store(struct kobject *kobj, in defrag_store() argument 295 static ssize_t use_zero_page_show(struct kobject *kobj, in use_zero_page_show() argument 298 return single_hugepage_flag_show(kobj, attr, buf, in use_zero_page_show() 301 static ssize_t use_zero_page_store(struct kobject *kobj, in use_zero_page_store() argument 304 return single_hugepage_flag_store(kobj, attr, buf, count, in use_zero_page_store() [all …]
|
D | cma.h | 10 struct kobject kobj; member
|
D | slub.c | 5014 #define to_slab(n) container_of(n, struct kmem_cache, kobj) 5480 static ssize_t slab_attr_show(struct kobject *kobj, in slab_attr_show() argument 5489 s = to_slab(kobj); in slab_attr_show() 5499 static ssize_t slab_attr_store(struct kobject *kobj, in slab_attr_store() argument 5508 s = to_slab(kobj); in slab_attr_store() 5587 kobject_init(&s->kobj, &slab_ktype); in sysfs_slab_add() 5601 sysfs_remove_link(&slab_kset->kobj, s->name); in sysfs_slab_add() 5613 s->kobj.kset = kset; in sysfs_slab_add() 5614 err = kobject_init_and_add(&s->kobj, &slab_ktype, NULL, "%s", name); in sysfs_slab_add() 5618 err = sysfs_create_group(&s->kobj, &slab_attr_group); in sysfs_slab_add() [all …]
|
D | swap_state.c | 905 static ssize_t vma_ra_enabled_show(struct kobject *kobj, in vma_ra_enabled_show() argument 910 static ssize_t vma_ra_enabled_store(struct kobject *kobj, in vma_ra_enabled_store() argument
|
D | shmem.c | 4019 static ssize_t shmem_enabled_show(struct kobject *kobj, in shmem_enabled_show() argument 4042 static ssize_t shmem_enabled_store(struct kobject *kobj, in shmem_enabled_store() argument
|