Home
last modified time | relevance | path

Searched refs:kobj (Results 1 – 18 of 18) sorted by relevance

/mm/damon/
A Dsysfs-schemes.c18 struct kobject kobj; member
177 kfree(container_of(kobj, struct damon_sysfs_scheme_regions, kobj)); in damon_sysfs_scheme_regions_release()
270 kfree(container_of(kobj, struct damon_sysfs_stats, kobj)); in damon_sysfs_stats_release()
958 kfree(container_of(kobj, struct damon_sysfs_watermarks, kobj)); in damon_sysfs_watermarks_release()
1134 kfree(container_of(kobj, struct damos_sysfs_quota_goal, kobj)); in damos_sysfs_quota_goal_release()
1367 kfree(container_of(kobj, struct damon_sysfs_weights, kobj)); in damon_sysfs_weights_release()
1529 kfree(container_of(kobj, struct damon_sysfs_quotas, kobj)); in damon_sysfs_quotas_release()
1824 dests = container_of(kobj, struct damos_sysfs_dests, kobj); in nr_dests_store()
1838 kfree(container_of(kobj, struct damos_sysfs_dests, kobj)); in damos_sysfs_dests_release()
2256 kfree(container_of(kobj, struct damon_sysfs_scheme, kobj)); in damon_sysfs_scheme_release()
[all …]
A Dsysfs.c19 struct kobject kobj; member
68 kfree(container_of(kobj, struct damon_sysfs_region, kobj)); in damon_sysfs_region_release()
175 regions = container_of(kobj, struct damon_sysfs_regions, kobj); in nr_regions_store()
189 kfree(container_of(kobj, struct damon_sysfs_regions, kobj)); in damon_sysfs_regions_release()
268 kfree(container_of(kobj, struct damon_sysfs_target, kobj)); in damon_sysfs_target_release()
379 targets = container_of(kobj, struct damon_sysfs_targets, kobj); in nr_targets_store()
393 kfree(container_of(kobj, struct damon_sysfs_targets, kobj)); in damon_sysfs_targets_release()
698 kfree(container_of(kobj, struct damon_sysfs_intervals, kobj)); in damon_sysfs_intervals_release()
796 kfree(container_of(kobj, struct damon_sysfs_attrs, kobj)); in damon_sysfs_attrs_release()
1002 kfree(container_of(kobj, struct damon_sysfs_context, kobj)); in damon_sysfs_context_release()
[all …]
A Dsysfs-common.c27 range->kobj = (struct kobject){}; in damon_sysfs_ul_range_alloc()
37 struct damon_sysfs_ul_range *range = container_of(kobj, in min_show()
38 struct damon_sysfs_ul_range, kobj); in min_show()
46 struct damon_sysfs_ul_range *range = container_of(kobj, in min_store()
47 struct damon_sysfs_ul_range, kobj); in min_store()
62 struct damon_sysfs_ul_range *range = container_of(kobj, in max_show()
63 struct damon_sysfs_ul_range, kobj); in max_show()
71 struct damon_sysfs_ul_range *range = container_of(kobj, in max_store()
72 struct damon_sysfs_ul_range, kobj); in max_store()
84 void damon_sysfs_ul_range_release(struct kobject *kobj) in damon_sysfs_ul_range_release() argument
[all …]
A Dsysfs-common.h14 struct kobject kobj; member
22 void damon_sysfs_ul_range_release(struct kobject *kobj);
31 struct kobject kobj; member
/mm/
A Dcma_sysfs.c34 return container_of(kobj, struct cma_kobject, kobj)->cma; in cma_from_kobj()
40 struct cma *cma = cma_from_kobj(kobj); in alloc_pages_success_show()
50 struct cma *cma = cma_from_kobj(kobj); in alloc_pages_fail_show()
59 struct cma *cma = cma_from_kobj(kobj); in release_pages_success_show()
65 static ssize_t total_pages_show(struct kobject *kobj, in total_pages_show() argument
68 struct cma *cma = cma_from_kobj(kobj); in total_pages_show()
77 struct cma *cma = cma_from_kobj(kobj); in available_pages_show()
83 static void cma_kobj_release(struct kobject *kobj) in cma_kobj_release() argument
85 struct cma *cma = cma_from_kobj(kobj); in cma_kobj_release()
132 kobject_put(&cma_kobj->kobj); in cma_sysfs_init()
[all …]
A Dksm.c3345 static ssize_t pages_to_scan_show(struct kobject *kobj, in pages_to_scan_show() argument
3351 static ssize_t pages_to_scan_store(struct kobject *kobj, in pages_to_scan_store() argument
3540 static ssize_t pages_scanned_show(struct kobject *kobj, in pages_scanned_show() argument
3547 static ssize_t pages_shared_show(struct kobject *kobj, in pages_shared_show() argument
3554 static ssize_t pages_sharing_show(struct kobject *kobj, in pages_sharing_show() argument
3585 static ssize_t pages_skipped_show(struct kobject *kobj, in pages_skipped_show() argument
3651 static ssize_t full_scans_show(struct kobject *kobj, in full_scans_show() argument
3658 static ssize_t smart_scan_show(struct kobject *kobj, in smart_scan_show() argument
3664 static ssize_t smart_scan_store(struct kobject *kobj, in smart_scan_store() argument
3680 static ssize_t advisor_mode_show(struct kobject *kobj, in advisor_mode_show() argument
[all …]
A Dhuge_memory.c293 static ssize_t enabled_show(struct kobject *kobj, in enabled_show() argument
367 static ssize_t defrag_show(struct kobject *kobj, in defrag_show() argument
390 static ssize_t defrag_store(struct kobject *kobj, in defrag_store() argument
493 int order = to_thpsize(kobj)->order; in anon_enabled_show()
512 int order = to_thpsize(kobj)->order; in anon_enabled_store()
608 int order = to_thpsize(kobj)->order; \
701 ret = sysfs_merge_group(kobj, grp); in sysfs_add_group()
703 ret = sysfs_create_group(kobj, grp); in sysfs_add_group()
758 kobject_put(&thpsize->kobj); in thpsize_create()
765 kfree(to_thpsize(kobj)); in thpsize_release()
[all …]
A Dkhugepaged.c188 static ssize_t pages_to_scan_show(struct kobject *kobj, in pages_to_scan_show() argument
194 static ssize_t pages_to_scan_store(struct kobject *kobj, in pages_to_scan_store() argument
212 static ssize_t pages_collapsed_show(struct kobject *kobj, in pages_collapsed_show() argument
221 static ssize_t full_scans_show(struct kobject *kobj, in full_scans_show() argument
230 static ssize_t defrag_show(struct kobject *kobj, in defrag_show() argument
233 return single_hugepage_flag_show(kobj, attr, buf, in defrag_show()
236 static ssize_t defrag_store(struct kobject *kobj, in defrag_store() argument
254 static ssize_t max_ptes_none_show(struct kobject *kobj, in max_ptes_none_show() argument
260 static ssize_t max_ptes_none_store(struct kobject *kobj, in max_ptes_none_store() argument
278 static ssize_t max_ptes_swap_show(struct kobject *kobj, in max_ptes_swap_show() argument
[all …]
A Dhugetlb.c4141 if (hstate_kobjs[i] == kobj) { in kobj_to_hstate()
4147 return kobj_to_node_hstate(kobj, nidp); in kobj_to_hstate()
4157 h = kobj_to_hstate(kobj, &nid); in nr_hugepages_show_common()
4200 struct kobject *kobj, const char *buf, in nr_hugepages_store_common() argument
4212 h = kobj_to_hstate(kobj, &nid); in nr_hugepages_store_common()
4287 h = kobj_to_hstate(kobj, &nid); in free_hugepages_show()
4312 h = kobj_to_hstate(kobj, &nid); in surplus_hugepages_show()
4335 h = kobj_to_hstate(kobj, &nid); in demote_store()
4408 h = kobj_to_hstate(kobj, NULL); in demote_size_store()
4522 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate()
[all …]
A Dpage_idle.c119 static ssize_t page_idle_bitmap_read(struct file *file, struct kobject *kobj, in page_idle_bitmap_read() argument
164 static ssize_t page_idle_bitmap_write(struct file *file, struct kobject *kobj, in page_idle_bitmap_write() argument
A Dcma.h9 struct kobject kobj; member
A Dslub.c7391 static ssize_t slab_attr_show(struct kobject *kobj, in slab_attr_show() argument
7399 s = to_slab(kobj); in slab_attr_show()
7415 s = to_slab(kobj); in slab_attr_store()
7506 sysfs_remove_link(&slab_kset->kobj, s->name); in sysfs_slab_add()
7518 s->kobj.kset = kset; in sysfs_slab_add()
7536 kobject_del(&s->kobj); in sysfs_slab_add()
7542 if (s->kobj.state_in_sysfs) in sysfs_slab_unlink()
7543 kobject_del(&s->kobj); in sysfs_slab_unlink()
7548 kobject_put(&s->kobj); in sysfs_slab_release()
7571 sysfs_remove_link(&slab_kset->kobj, name); in sysfs_slab_alias()
[all …]
A Dmemory-tiers.c934 static ssize_t demotion_enabled_show(struct kobject *kobj, in demotion_enabled_show() argument
940 static ssize_t demotion_enabled_store(struct kobject *kobj, in demotion_enabled_store() argument
A Dswap_state.c818 static ssize_t vma_ra_enabled_show(struct kobject *kobj, in vma_ra_enabled_show() argument
823 static ssize_t vma_ra_enabled_store(struct kobject *kobj, in vma_ra_enabled_store() argument
A Dslab.h264 struct kobject kobj; /* For sysfs */ member
A Dshmem.c5424 static ssize_t casefold_show(struct kobject *kobj, struct kobj_attribute *a, in casefold_show() argument
5519 static ssize_t shmem_enabled_show(struct kobject *kobj, in shmem_enabled_show() argument
5543 static ssize_t shmem_enabled_store(struct kobject *kobj, in shmem_enabled_store() argument
5571 static ssize_t thpsize_shmem_enabled_show(struct kobject *kobj, in thpsize_shmem_enabled_show() argument
5574 int order = to_thpsize(kobj)->order; in thpsize_shmem_enabled_show()
5591 static ssize_t thpsize_shmem_enabled_store(struct kobject *kobj, in thpsize_shmem_enabled_store() argument
5595 int order = to_thpsize(kobj)->order; in thpsize_shmem_enabled_store()
A Dmempolicy.c3548 static ssize_t node_show(struct kobject *kobj, struct kobj_attribute *attr, in node_show() argument
3559 static ssize_t node_store(struct kobject *kobj, struct kobj_attribute *attr, in node_store() argument
3599 static ssize_t weighted_interleave_auto_show(struct kobject *kobj, in weighted_interleave_auto_show() argument
3614 static ssize_t weighted_interleave_auto_store(struct kobject *kobj, in weighted_interleave_auto_store() argument
A Dvmscan.c5248 static ssize_t min_ttl_ms_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in min_ttl_ms_show() argument
5254 static ssize_t min_ttl_ms_store(struct kobject *kobj, struct kobj_attribute *attr, in min_ttl_ms_store() argument
5269 static ssize_t enabled_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in enabled_show() argument
5286 static ssize_t enabled_store(struct kobject *kobj, struct kobj_attribute *attr, in enabled_store() argument

Completed in 124 milliseconds