Lines Matching refs:user_buf
212 static ssize_t monitor_enable_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_enable_read_data() argument
220 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff)+1); in monitor_enable_read_data()
282 static ssize_t monitor_enable_write_data(struct file *filp, const char __user *user_buf, in monitor_enable_write_data() argument
289 retval = kstrtobool_from_user(user_buf, count, &val); in monitor_enable_write_data()
317 static ssize_t monitor_desc_read_data(struct file *filp, char __user *user_buf, size_t count, in monitor_desc_read_data() argument
327 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitor_desc_read_data()
512 static ssize_t enabled_monitors_write(struct file *filp, const char __user *user_buf, in enabled_monitors_write() argument
527 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in enabled_monitors_write()
596 static ssize_t monitoring_on_read_data(struct file *filp, char __user *user_buf, in monitoring_on_read_data() argument
603 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitoring_on_read_data()
647 static ssize_t monitoring_on_write_data(struct file *filp, const char __user *user_buf, in monitoring_on_write_data() argument
653 retval = kstrtobool_from_user(user_buf, count, &val); in monitoring_on_write_data()