Lines Matching defs:buf
40 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf);
41 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count);
54 char *buf)
65 return attribute->show(foo, attribute, buf);
74 const char *buf, size_t len)
85 return attribute->store(foo, attribute, buf, len);
113 char *buf)
115 return sprintf(buf, "%d\n", foo_obj->foo);
119 const char *buf, size_t count)
123 ret = kstrtoint(buf, 10, &foo_obj->foo);
139 char *buf)
147 return sprintf(buf, "%d\n", var);
151 const char *buf, size_t count)
155 ret = kstrtoint(buf, 10, &var);