• Home
  • Raw
  • Download

Lines Matching refs:buf

18 	ssize_t (*show)(struct kobject *kobject, char *buf);
19 ssize_t (*store)(struct kobject *kobject, const char *buf,
42 char *buf) in xfs_sysfs_object_show() argument
46 return xfs_attr->show ? xfs_attr->show(kobject, buf) : 0; in xfs_sysfs_object_show()
53 const char *buf, in xfs_sysfs_object_store() argument
58 return xfs_attr->store ? xfs_attr->store(kobject, buf, count) : 0; in xfs_sysfs_object_store()
82 const char *buf, in bug_on_assert_store() argument
88 ret = kstrtoint(buf, 0, &val); in bug_on_assert_store()
105 char *buf) in bug_on_assert_show() argument
107 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.bug_on_assert ? 1 : 0); in bug_on_assert_show()
114 const char *buf, in log_recovery_delay_store() argument
120 ret = kstrtoint(buf, 0, &val); in log_recovery_delay_store()
135 char *buf) in log_recovery_delay_show() argument
137 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.log_recovery_delay); in log_recovery_delay_show()
144 const char *buf, in mount_delay_store() argument
150 ret = kstrtoint(buf, 0, &val); in mount_delay_store()
165 char *buf) in mount_delay_show() argument
167 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.mount_delay); in mount_delay_show()
174 const char *buf, in always_cow_store() argument
179 ret = kstrtobool(buf, &xfs_globals.always_cow); in always_cow_store()
188 char *buf) in always_cow_show() argument
190 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.always_cow); in always_cow_show()
203 const char *buf, in pwork_threads_store() argument
209 ret = kstrtoint(buf, 0, &val); in pwork_threads_store()
224 char *buf) in pwork_threads_show() argument
226 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.pwork_threads); in pwork_threads_show()
263 char *buf) in stats_show() argument
267 return xfs_stats_format(stats->xs_stats, buf); in stats_show()
274 const char *buf, in stats_clear_store() argument
281 ret = kstrtoint(buf, 0, &val); in stats_clear_store()
318 char *buf) in log_head_lsn_show() argument
329 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_head_lsn_show()
336 char *buf) in log_tail_lsn_show() argument
343 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, block); in log_tail_lsn_show()
350 char *buf) in reserve_grant_head_show() argument
358 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
365 char *buf) in write_grant_head_show() argument
372 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in write_grant_head_show()
417 char *buf) in max_retries_show() argument
427 return snprintf(buf, PAGE_SIZE, "%d\n", retries); in max_retries_show()
433 const char *buf, in max_retries_store() argument
440 ret = kstrtoint(buf, 0, &val); in max_retries_store()
458 char *buf) in retry_timeout_seconds_show() argument
468 return snprintf(buf, PAGE_SIZE, "%d\n", timeout); in retry_timeout_seconds_show()
474 const char *buf, in retry_timeout_seconds_store() argument
481 ret = kstrtoint(buf, 0, &val); in retry_timeout_seconds_store()
502 char *buf) in fail_at_unmount_show() argument
506 return snprintf(buf, PAGE_SIZE, "%d\n", mp->m_fail_unmount); in fail_at_unmount_show()
512 const char *buf, in fail_at_unmount_store() argument
519 ret = kstrtoint(buf, 0, &val); in fail_at_unmount_store()