sgttyb 15 arch/alpha/include/uapi/asm/ioctls.h #define TIOCGETP _IOR('t', 8, struct sgttyb) sgttyb 16 arch/alpha/include/uapi/asm/ioctls.h #define TIOCSETP _IOW('t', 9, struct sgttyb) sgttyb 17 arch/alpha/include/uapi/asm/ioctls.h #define TIOCSETN _IOW('t', 10, struct sgttyb) /* TIOCSETP wo flush */ sgttyb 15 arch/powerpc/include/uapi/asm/ioctls.h #define TIOCGETP _IOR('t', 8, struct sgttyb) sgttyb 16 arch/powerpc/include/uapi/asm/ioctls.h #define TIOCSETP _IOW('t', 9, struct sgttyb) sgttyb 17 arch/powerpc/include/uapi/asm/ioctls.h #define TIOCSETN _IOW('t', 10, struct sgttyb) /* TIOCSETP wo flush */ sgttyb 43 arch/sparc/include/uapi/asm/ioctls.h #define __TIOCGETP _IOR('t', 8, struct sgttyb) /* SunOS Specific */ sgttyb 44 arch/sparc/include/uapi/asm/ioctls.h #define __TIOCSETP _IOW('t', 9, struct sgttyb) /* SunOS Specific */ sgttyb 45 arch/sparc/include/uapi/asm/ioctls.h #define __TIOCSETN _IOW('t', 10, struct sgttyb) /* SunOS Specific */ sgttyb 515 drivers/tty/tty_ioctl.c static int get_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb) sgttyb 517 drivers/tty/tty_ioctl.c struct sgttyb tmp; sgttyb 527 drivers/tty/tty_ioctl.c return copy_to_user(sgttyb, &tmp, sizeof(tmp)) ? -EFAULT : 0; sgttyb 567 drivers/tty/tty_ioctl.c static int set_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb) sgttyb 570 drivers/tty/tty_ioctl.c struct sgttyb tmp; sgttyb 577 drivers/tty/tty_ioctl.c if (copy_from_user(&tmp, sgttyb, sizeof(tmp))) sgttyb 727 drivers/tty/tty_ioctl.c return get_sgttyb(real_tty, (struct sgttyb __user *) arg); sgttyb 730 drivers/tty/tty_ioctl.c return set_sgttyb(real_tty, (struct sgttyb __user *) arg);