Lines Matching refs:user_len
907 char *dasd_get_user_string(const char __user *user_buf, size_t user_len) in dasd_get_user_string() argument
911 buffer = vmalloc(user_len + 1); in dasd_get_user_string()
914 if (copy_from_user(buffer, user_buf, user_len) != 0) { in dasd_get_user_string()
919 if (buffer[user_len - 1] == '\n') in dasd_get_user_string()
920 buffer[user_len - 1] = 0; in dasd_get_user_string()
922 buffer[user_len] = 0; in dasd_get_user_string()
928 size_t user_len, loff_t *pos) in dasd_stats_write() argument
935 if (user_len > 65536) in dasd_stats_write()
936 user_len = 65536; in dasd_stats_write()
937 buffer = dasd_get_user_string(user_buf, user_len); in dasd_stats_write()
942 rc = user_len; in dasd_stats_write()
949 rc = user_len; in dasd_stats_write()