Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 17 of 17) sorted by relevance

/mm/
Dfailslab.c8 struct fault_attr attr; member
12 .attr = FAULT_ATTR_INITIALIZER,
33 return should_fail(&failslab.attr, s->object_size); in __should_failslab()
38 return setup_fault_attr(&failslab.attr, str); in setup_failslab()
48 dir = fault_create_debugfs_attr("failslab", NULL, &failslab.attr); in failslab_debugfs_init()
Dksm.c2832 struct kobj_attribute *attr, char *buf) in sleep_millisecs_show() argument
2838 struct kobj_attribute *attr, in sleep_millisecs_store() argument
2856 struct kobj_attribute *attr, char *buf) in pages_to_scan_show() argument
2862 struct kobj_attribute *attr, in pages_to_scan_store() argument
2878 static ssize_t run_show(struct kobject *kobj, struct kobj_attribute *attr, in run_show() argument
2884 static ssize_t run_store(struct kobject *kobj, struct kobj_attribute *attr, in run_store() argument
2928 struct kobj_attribute *attr, char *buf) in merge_across_nodes_show() argument
2934 struct kobj_attribute *attr, in merge_across_nodes_store() argument
2985 struct kobj_attribute *attr, char *buf) in use_zero_pages_show() argument
2990 struct kobj_attribute *attr, in use_zero_pages_store() argument
[all …]
Dkhugepaged.c126 struct kobj_attribute *attr, in scan_sleep_millisecs_show() argument
133 struct kobj_attribute *attr, in scan_sleep_millisecs_store() argument
154 struct kobj_attribute *attr, in alloc_sleep_millisecs_show() argument
161 struct kobj_attribute *attr, in alloc_sleep_millisecs_store() argument
182 struct kobj_attribute *attr, in pages_to_scan_show() argument
188 struct kobj_attribute *attr, in pages_to_scan_store() argument
207 struct kobj_attribute *attr, in pages_collapsed_show() argument
216 struct kobj_attribute *attr, in full_scans_show() argument
225 struct kobj_attribute *attr, char *buf) in khugepaged_defrag_show() argument
227 return single_hugepage_flag_show(kobj, attr, buf, in khugepaged_defrag_show()
[all …]
Dslub.c5354 #define to_slab_attr(n) container_of(n, struct slab_attribute, attr)
5358 struct attribute attr; member
5751 &slab_size_attr.attr,
5752 &object_size_attr.attr,
5753 &objs_per_slab_attr.attr,
5754 &order_attr.attr,
5755 &min_partial_attr.attr,
5756 &cpu_partial_attr.attr,
5757 &objects_attr.attr,
5758 &objects_partial_attr.attr,
[all …]
Dcma_sysfs.c33 struct kobj_attribute *attr, char *buf) in alloc_pages_success_show() argument
43 struct kobj_attribute *attr, char *buf) in alloc_pages_fail_show() argument
61 &alloc_pages_success_attr.attr,
62 &alloc_pages_fail_attr.attr,
Dbacking-dev.c134 struct device_attribute *attr, in read_ahead_kb_store() argument
152 struct device_attribute *attr, char *buf) \
163 struct device_attribute *attr, const char *buf, size_t count) in min_ratio_store() argument
182 struct device_attribute *attr, const char *buf, size_t count) in max_ratio_store() argument
201 struct device_attribute *attr, in stable_pages_required_show() argument
211 &dev_attr_read_ahead_kb.attr,
212 &dev_attr_min_ratio.attr,
213 &dev_attr_max_ratio.attr,
214 &dev_attr_stable_pages_required.attr,
Dpgsize_migration.c35 struct kobj_attribute *attr, in show_pgsize_migration_enabled() argument
45 struct kobj_attribute *attr, in store_pgsize_migration_enabled() argument
76 &pgsize_migration_enabled_attr.attr,
Dhuge_memory.c177 struct kobj_attribute *attr, char *buf) in enabled_show() argument
193 struct kobj_attribute *attr, in enabled_store() argument
221 struct kobj_attribute *attr, char *buf, in single_hugepage_flag_show() argument
229 struct kobj_attribute *attr, in single_hugepage_flag_store() argument
251 struct kobj_attribute *attr, char *buf) in defrag_show() argument
274 struct kobj_attribute *attr, in defrag_store() argument
311 struct kobj_attribute *attr, char *buf) in use_zero_page_show() argument
313 return single_hugepage_flag_show(kobj, attr, buf, in use_zero_page_show()
317 struct kobj_attribute *attr, const char *buf, size_t count) in use_zero_page_store() argument
319 return single_hugepage_flag_store(kobj, attr, buf, count, in use_zero_page_store()
[all …]
Dpage_idle.c115 struct bin_attribute *attr, char *buf, in page_idle_bitmap_read() argument
160 struct bin_attribute *attr, char *buf, in page_idle_bitmap_write() argument
Dhugetlb.c3268 struct kobj_attribute *attr, char *buf) in nr_hugepages_show_common() argument
3334 struct kobj_attribute *attr, char *buf) in nr_hugepages_show() argument
3336 return nr_hugepages_show_common(kobj, attr, buf); in nr_hugepages_show()
3340 struct kobj_attribute *attr, const char *buf, size_t len) in nr_hugepages_store() argument
3353 struct kobj_attribute *attr, in nr_hugepages_mempolicy_show() argument
3356 return nr_hugepages_show_common(kobj, attr, buf); in nr_hugepages_mempolicy_show()
3360 struct kobj_attribute *attr, const char *buf, size_t len) in nr_hugepages_mempolicy_store() argument
3369 struct kobj_attribute *attr, char *buf) in nr_overcommit_hugepages_show() argument
3376 struct kobj_attribute *attr, const char *buf, size_t count) in nr_overcommit_hugepages_store() argument
3398 struct kobj_attribute *attr, char *buf) in free_hugepages_show() argument
[all …]
Dswap_state.c859 struct kobj_attribute *attr, char *buf) in vma_ra_enabled_show() argument
865 struct kobj_attribute *attr, in vma_ra_enabled_store() argument
882 &vma_ra_enabled_attr.attr,
Dshmem.c1090 struct dentry *dentry, struct iattr *attr) in shmem_setattr() argument
1096 error = setattr_prepare(&init_user_ns, dentry, attr); in shmem_setattr()
1100 if (S_ISREG(inode->i_mode) && (attr->ia_valid & ATTR_SIZE)) { in shmem_setattr()
1102 loff_t newsize = attr->ia_size; in shmem_setattr()
1132 setattr_copy(&init_user_ns, inode, attr); in shmem_setattr()
1133 if (attr->ia_valid & ATTR_MODE) in shmem_setattr()
3997 struct kobj_attribute *attr, char *buf) in shmem_enabled_show() argument
4023 struct kobj_attribute *attr, const char *buf, size_t count) in shmem_enabled_store() argument
Ddmapool.c65 static ssize_t pools_show(struct device *dev, struct device_attribute *attr, char *buf) in pools_show() argument
Dmempolicy.c2979 struct kobj_attribute *attr, char *buf) in numa_demotion_enabled_show() argument
2986 struct kobj_attribute *attr, in numa_demotion_enabled_store() argument
3004 &numa_demotion_enabled_attr.attr,
Dvmscan.c5347 static ssize_t show_min_ttl(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in show_min_ttl() argument
5353 static ssize_t store_min_ttl(struct kobject *kobj, struct kobj_attribute *attr, in store_min_ttl() argument
5370 static ssize_t show_enabled(struct kobject *kobj, struct kobj_attribute *attr, char *buf) in show_enabled() argument
5387 static ssize_t store_enabled(struct kobject *kobj, struct kobj_attribute *attr, in store_enabled() argument
5419 &lru_gen_min_ttl_attr.attr,
5420 &lru_gen_enabled_attr.attr,
Dpage_alloc.c3989 struct fault_attr attr; member
3995 .attr = FAULT_ATTR_INITIALIZER,
4003 return setup_fault_attr(&fail_page_alloc.attr, str); in setup_fail_page_alloc()
4019 return should_fail(&fail_page_alloc.attr, 1 << order); in __should_fail_alloc_page()
4030 &fail_page_alloc.attr); in fail_page_alloc_debugfs()
Dcompaction.c2828 struct device_attribute *attr, in compact_store() argument