Lines Matching refs:buff
216 const char *buff; in monitor_enable_read_data() local
218 buff = mdef->monitor->enabled ? "1\n" : "0\n"; in monitor_enable_read_data()
220 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff)+1); in monitor_enable_read_data()
321 char buff[256]; in monitor_desc_read_data() local
323 memset(buff, 0, sizeof(buff)); in monitor_desc_read_data()
325 snprintf(buff, sizeof(buff), "%s\n", mdef->monitor->description); in monitor_desc_read_data()
327 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitor_desc_read_data()
515 char buff[MAX_RV_MONITOR_NAME_SIZE + 2]; in enabled_monitors_write() local
519 char *ptr = buff; in enabled_monitors_write()
525 memset(buff, 0, sizeof(buff)); in enabled_monitors_write()
527 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in enabled_monitors_write()
531 ptr = strim(buff); in enabled_monitors_write()
599 const char *buff; in monitoring_on_read_data() local
601 buff = rv_monitoring_on() ? "1\n" : "0\n"; in monitoring_on_read_data()
603 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitoring_on_read_data()