Lines Matching defs:termio
1 /* termios.h: generic termios/termio user copying/translation
12 * Translate a "termio" structure into a "termios". Ugh.
15 struct termio __user *termio)
19 if (get_user(tmp, &termio->c_iflag) < 0)
23 if (get_user(tmp, &termio->c_oflag) < 0)
27 if (get_user(tmp, &termio->c_cflag) < 0)
31 if (get_user(tmp, &termio->c_lflag) < 0)
35 if (get_user(termios->c_line, &termio->c_line) < 0)
38 if (copy_from_user(termios->c_cc, termio->c_cc, NCC) != 0)
48 * Translate a "termios" structure into a "termio". Ugh.
50 static inline int kernel_termios_to_user_termio(struct termio __user *termio,
53 if (put_user(termios->c_iflag, &termio->c_iflag) < 0 ||
54 put_user(termios->c_oflag, &termio->c_oflag) < 0 ||
55 put_user(termios->c_cflag, &termio->c_cflag) < 0 ||
56 put_user(termios->c_lflag, &termio->c_lflag) < 0 ||
57 put_user(termios->c_line, &termio->c_line) < 0 ||
58 copy_to_user(termio->c_cc, termios->c_cc, NCC) != 0)