Lines Matching refs:buf
19 ssize_t (*show)(struct kobject *kobject, char *buf);
20 ssize_t (*store)(struct kobject *kobject, const char *buf,
43 char *buf) in xfs_sysfs_object_show() argument
47 return xfs_attr->show ? xfs_attr->show(kobject, buf) : 0; in xfs_sysfs_object_show()
54 const char *buf, in xfs_sysfs_object_store() argument
59 return xfs_attr->store ? xfs_attr->store(kobject, buf, count) : 0; in xfs_sysfs_object_store()
83 const char *buf, in bug_on_assert_store() argument
89 ret = kstrtoint(buf, 0, &val); in bug_on_assert_store()
106 char *buf) in bug_on_assert_show() argument
108 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.bug_on_assert ? 1 : 0); in bug_on_assert_show()
115 const char *buf, in log_recovery_delay_store() argument
121 ret = kstrtoint(buf, 0, &val); in log_recovery_delay_store()
136 char *buf) in log_recovery_delay_show() argument
138 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.log_recovery_delay); in log_recovery_delay_show()
145 const char *buf, in mount_delay_store() argument
151 ret = kstrtoint(buf, 0, &val); in mount_delay_store()
166 char *buf) in mount_delay_show() argument
168 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.mount_delay); in mount_delay_show()
175 const char *buf, in always_cow_store() argument
180 ret = kstrtobool(buf, &xfs_globals.always_cow); in always_cow_store()
189 char *buf) in always_cow_show() argument
191 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.always_cow); in always_cow_show()
204 const char *buf, in pwork_threads_store() argument
210 ret = kstrtoint(buf, 0, &val); in pwork_threads_store()
225 char *buf) in pwork_threads_show() argument
227 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.pwork_threads); in pwork_threads_show()
264 char *buf) in stats_show() argument
268 return xfs_stats_format(stats->xs_stats, buf); in stats_show()
275 const char *buf, in stats_clear_store() argument
282 ret = kstrtoint(buf, 0, &val); in stats_clear_store()
319 char *buf) in log_head_lsn_show() argument
330 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_head_lsn_show()
337 char *buf) in log_tail_lsn_show() argument
344 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_tail_lsn_show()
351 char *buf) in reserve_grant_head_show() argument
359 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
366 char *buf) in write_grant_head_show() argument
373 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in write_grant_head_show()
418 char *buf) in max_retries_show() argument
428 return snprintf(buf, PAGE_SIZE, "%d\n", retries); in max_retries_show()
434 const char *buf, in max_retries_store() argument
441 ret = kstrtoint(buf, 0, &val); in max_retries_store()
459 char *buf) in retry_timeout_seconds_show() argument
469 return snprintf(buf, PAGE_SIZE, "%d\n", timeout); in retry_timeout_seconds_show()
475 const char *buf, in retry_timeout_seconds_store() argument
482 ret = kstrtoint(buf, 0, &val); in retry_timeout_seconds_store()
503 char *buf) in fail_at_unmount_show() argument
507 return snprintf(buf, PAGE_SIZE, "%d\n", mp->m_fail_unmount); in fail_at_unmount_show()
513 const char *buf, in fail_at_unmount_store() argument
520 ret = kstrtoint(buf, 0, &val); in fail_at_unmount_store()