Home
last modified time | relevance | path

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

/lib/
Dfault-inject.c17 int setup_fault_attr(struct fault_attr *attr, char *str) in setup_fault_attr() argument
32 attr->probability = probability; in setup_fault_attr()
33 attr->interval = interval; in setup_fault_attr()
34 atomic_set(&attr->times, times); in setup_fault_attr()
35 atomic_set(&attr->space, space); in setup_fault_attr()
41 static void fail_dump(struct fault_attr *attr) in fail_dump() argument
43 if (attr->verbose > 0 && __ratelimit(&attr->ratelimit_state)) { in fail_dump()
46 "space %d, times %d\n", attr->dname, in fail_dump()
47 attr->interval, attr->probability, in fail_dump()
48 atomic_read(&attr->space), in fail_dump()
[all …]
Dkobject.c52 struct attribute *attr; in populate_dir() local
57 for (i = 0; (attr = t->default_attrs[i]) != NULL; i++) { in populate_dir()
58 error = sysfs_create_file(kobj, attr); in populate_dir()
776 static ssize_t kobj_attr_show(struct kobject *kobj, struct attribute *attr, in kobj_attr_show() argument
782 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show()
788 static ssize_t kobj_attr_store(struct kobject *kobj, struct attribute *attr, in kobj_attr_store() argument
794 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store()
Dtest_firmware.c51 struct device_attribute *attr, in trigger_request_store() argument