tchars
#define TIOCSETC _IOW('t', 17, struct tchars)
#define TIOCGETC _IOR('t', 18, struct tchars)
#define TIOCSETC _IOW('t', 17, struct tchars)
#define TIOCGETC _IOR('t', 18, struct tchars)
#define __TIOCSETC _IOW('t', 17, struct tchars) /* SunOS Specific */
#define __TIOCGETC _IOR('t', 18, struct tchars) /* SunOS Specific */
static int get_tchars(struct tty_struct *tty, struct tchars __user *tchars)
struct tchars tmp;
return copy_to_user(tchars, &tmp, sizeof(tmp)) ? -EFAULT : 0;
static int set_tchars(struct tty_struct *tty, struct tchars __user *tchars)
struct tchars tmp;
if (copy_from_user(&tmp, tchars, sizeof(tmp)))