if (copy_from_user(buf, user_buf, count)) return -EFAULT;
buf[count] = '\0';
/* Only 4 parameters is allowed, the ranger are as follow: * [0] enable/disable colorbar feature 0: enable colorbar, 1: disable colorbar * [1] the timing source of colorbar displaying 0: timing follows XDP, 1: internal self timing * [2] the movment of colorbar displaying 0: static colorbar image, * 1~255: right shifting a type of color per (1~255)frames * [3] the color type of colorbar displaying 0~9: color bar, white, red, orange, * yellow, green, cyan, bule, pupper, black
*/ if (sscanf(buf, "%hhu %hhu %hhu %u", &cfg->enable, &cfg->self_timing,
&cfg->dynamic_rate, &cfg->pattern) != 4) { return -EINVAL;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.