| /xnu-8019.80.24/bsd/sys/ |
| H A D | tty.h | 115 struct tty { struct 136 void (*t_oproc)(struct tty *); argument 138 void (*t_stop)(struct tty *, int); argument 140 int (*t_param)(struct tty *, struct termios *); argument 155 #define TTY_NULL (struct tty *)NULL argument 188 struct tty; 298 int ttioctl_locked(struct tty *tp, u_long com, caddr_t data, int flag, 301 int ttcompat(struct tty *tp, u_long com, caddr_t data, int flag, 305 void tty_lock(struct tty *tp); 306 void tty_unlock(struct tty *tp); [all …]
|
| H A D | conf.h | 83 struct tty; 102 typedef struct tty *d_devtotty_t(dev_t dev); 110 typedef int stop_fcn_t(struct tty *tp, int rw); 192 struct tty **d_ttys; 228 typedef int l_open_t (dev_t dev, struct tty *tp); 229 typedef int l_close_t(struct tty *tp, int flags); 230 typedef int l_read_t (struct tty *tp, struct uio *uio, int flag); 231 typedef int l_write_t(struct tty *tp, struct uio *uio, int flag); 232 typedef int l_ioctl_t(struct tty *tp, u_long cmd, caddr_t data, int flag, 234 typedef int l_rint_t (int c, struct tty *tp); [all …]
|
| H A D | subr_prf.h | 86 extern int prf(const char *fmt, va_list ap, int flags, struct tty *ttyp) __printflike(1, 0);
|
| H A D | proc_internal.h | 144 struct tty *s_ttyp; /* (SL) Controlling terminal */ 825 extern struct pgrp *tty_pgrp_locked(struct tty * tp); 835 extern struct tty *session_set_tty_locked(struct session *sessp, struct tty *); 836 extern struct tty *session_clear_tty_locked(struct session *sess); 837 extern struct tty *session_tty(struct session *sess);
|
| H A D | types.h | 220 struct tty;
|
| H A D | systm.h | 158 void ttyprintf(struct tty *, const char *, ...) __printflike(2, 3);
|
| H A D | signalvar.h | 208 void tty_pgsignal_locked(struct tty * tp, int sig, int checkctty);
|
| /xnu-8019.80.24/bsd/kern/ |
| H A D | subr_prf.c | 112 void _printf(int, struct tty *, const char *, ...); 129 extern struct tty cons; /* standard console tty */ 130 extern struct tty *constty; /* pointer to console "window" tty */ 150 struct tty *tty; member 160 pca->tty = sessp->s_ttyp; in putchar_args_init() 161 if (pca->tty != TTY_NULL) { in putchar_args_init() 162 ttyhold(pca->tty); in putchar_args_init() 170 if (pca->tty != TTY_NULL) { in putchar_args_destroy() 171 ttyfree(pca->tty); in putchar_args_destroy() 193 if (pca.tty != NULL) { in uprintf() [all …]
|
| H A D | tty.c | 122 __private_extern__ int ttnread(struct tty *tp); 123 static void ttyecho(int c, struct tty *tp); 124 static int ttyoutput(int c, struct tty *tp); 125 static void ttypend(struct tty *tp); 126 static void ttyretype(struct tty *tp); 127 static void ttyrub(int c, struct tty *tp); 128 static void ttyrubo(struct tty *tp, int count); 129 static void ttystop(struct tty *tp, int rw); 130 static void ttyunblock(struct tty *tp); 131 static int ttywflush(struct tty *tp); [all …]
|
| H A D | tty_ptmx.c | 100 static void ptsd_revoke_knotes(int minor, struct tty *tp); 187 SYSCTL_NODE(_kern, KERN_TTY, tty, CTLFLAG_RW | CTLFLAG_LOCKED, 0, "TTY"); 536 struct tty *tp = kn->kn_hook; in ptsd_kqops_detach() 563 ptsd_kqops_common(struct knote *kn, struct kevent_qos_s *kev, struct tty *tp) in ptsd_kqops_common() 609 struct tty *tp = kn->kn_hook; in ptsd_kqops_event() 627 struct tty *tp = kn->kn_hook; in ptsd_kqops_touch() 647 struct tty *tp = kn->kn_hook; in ptsd_kqops_process() 660 struct tty *tp = NULL; in ptsd_kqfilter() 710 ptsd_revoke_knotes(__unused int minor, struct tty *tp) in ptsd_revoke_knotes() 738 struct ptmx_ioctl *pti, struct tty *tp); [all …]
|
| H A D | tty_dev.h | 38 struct tty *pt_tty; /* pointer to ttymalloc()'ed data */ 72 void (*revoke)(int minor, struct tty *tp); 77 extern int ttnread(struct tty *tp);
|
| H A D | tty_dev.c | 99 static void ptcwakeup(struct tty *tp, int flag); 269 struct tty *tp = pti->pt_tty; in ptsopen() 326 struct tty *tp; in ptsclose() 366 struct tty *tp; in ptsread() 394 struct tty *tp; in ptswrite() 423 ptsstart(struct tty *tp) in ptsstart() 455 ptcwakeup(struct tty *tp, int flag) in ptcwakeup() 485 struct tty *tp = pti->pt_tty; in ptcopen() 524 struct tty *tp; in ptcclose() 582 struct tty *tp; [all …]
|
| H A D | tty_compat.c | 88 static int ttcompatgetflags(struct tty *tp); 89 static void ttcompatsetflags(struct tty *tp, struct termios *t); 90 static void ttcompatsetlflags(struct tty *tp, struct termios *t); 214 ttsetcompat(struct tty *tp, u_long *com, caddr_t data, struct termios *term) in ttsetcompat() 390 ttcompat(struct tty *tp, u_long com, caddr_t data, int flag, struct proc *p) in ttcompat() 553 ttcompatgetflags(struct tty *tp) in ttcompatgetflags() 639 ttcompatsetflags(struct tty *tp, struct termios *t) in ttcompatsetflags() 738 ttcompatsetlflags(struct tty *tp, struct termios *t) in ttcompatsetlflags()
|
| H A D | tty_conf.c | 167 l_noioctl(__unused struct tty *tp, __unused u_long cmd, __unused caddr_t data, in l_noioctl() 174 l_nostart(__unused struct tty *tp) in l_nostart()
|
| /xnu-8019.80.24/bsd/dev/i386/ |
| H A D | km.c | 62 struct tty *km_tty[1] = { 0 }; 75 static int kmoutput(struct tty *tp); 76 static void kmstart(struct tty *tp); 95 struct tty *tp; in kmopen() 168 struct tty *tp = km_tty[minor(dev)]; in kmclose() 182 struct tty *tp = km_tty[minor(dev)]; in kmread() 195 struct tty *tp = km_tty[minor(dev)]; in kmwrite() 208 struct tty *tp = km_tty[minor(dev)]; in kmioctl() 300 kmstart(struct tty *tp) in kmstart() 328 struct tty *tp = (struct tty *)arg; in kmtimeout() [all …]
|
| H A D | cons.c | 58 struct tty *constty; /* current console device */ 64 extern struct tty *km_tty[1];
|
| H A D | conf.c | 96 extern struct tty *km_tty[];
|
| /xnu-8019.80.24/bsd/dev/arm/ |
| H A D | km.c | 39 struct tty *km_tty[1] = { 0 }; 52 static int kmoutput(struct tty * tp); 53 static void kmstart(struct tty * tp); 72 struct tty *tp; in kmopen() 149 struct tty *tp = km_tty[minor(dev)]; in kmclose() 163 struct tty *tp = km_tty[minor(dev)]; in kmread() 176 struct tty *tp = km_tty[minor(dev)]; in kmwrite() 189 struct tty *tp = km_tty[minor(dev)]; in kmioctl() 282 kmstart(struct tty *tp) in kmstart() 325 struct tty *tp = (struct tty *)arg; in kmtimeout() [all …]
|
| H A D | cons.c | 23 struct tty *constty; /* current console device */ 29 extern struct tty *km_tty[1];
|
| H A D | conf.c | 73 extern struct tty *km_tty[];
|
| /xnu-8019.80.24/bsd/machine/ |
| H A D | cons.h | 38 struct tty *cn_tp; /* tty structure for console device */ 59 extern struct tty *cn_tty; 61 extern struct tty *constty; /* current console device */
|
| /xnu-8019.80.24/security/ |
| H A D | mac_pty.c | 37 mac_pty_notify_grant(proc_t p, struct tty *tp, dev_t dev, struct label *label) in mac_pty_notify_grant() 43 mac_pty_notify_close(proc_t p, struct tty *tp, dev_t dev, struct label *label) in mac_pty_notify_close()
|
| /xnu-8019.80.24/tools/lldbmacros/ |
| H A D | process.py | 883 tty = kern.GetValueFromAddress(cmd_args[0], 'struct tty *') 885 …input to raw queue: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_rawq.c_cs), tty.t_rawq.c_c… 886 …input to canonical queue: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_canq.c_cs), tty.t_canq.c_c… 887 …output data: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_outq.c_cs), tty.t_outq.c_c… 916 tty_state = unsigned(tty.t_state) 927 print "Flags: 0x{0:0>8x}".format(unsigned(tty.t_flags)) 928 print "Foreground Process Group: 0x{0:0>16x}".format(unsigned(tty.t_pgrp)) 929 print "Enclosing session: 0x{0:0>16x}".format(unsigned(tty.t_session)) 931 print "\tInput Flags: 0x{0:0>8x}".format(unsigned(tty.t_termios.c_iflag)) 932 print "\tOutput Flags: 0x{0:0>8x}".format(unsigned(tty.t_termios.c_oflag)) [all …]
|
| /xnu-8019.80.24/bsd/man/man4/ |
| H A D | Makefile | 40 tty.4 \
|
| /xnu-8019.80.24/bsd/dev/arm64/ |
| H A D | conf.c | 72 extern struct tty *km_tty[];
|