Home
last modified time | relevance | path

Searched refs:tty (Results 1 – 25 of 39) sorted by relevance

12

/xnu-8792.41.9/bsd/sys/
H A Dtty.h115 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 Dconf.h83 struct tty;
102 typedef struct tty *d_devtotty_t(dev_t dev);
110 typedef int stop_fcn_t(struct tty *tp, int rw);
195 struct tty **d_ttys;
232 typedef int l_open_t (dev_t dev, struct tty *tp);
233 typedef int l_close_t(struct tty *tp, int flags);
234 typedef int l_read_t (struct tty *tp, struct uio *uio, int flag);
235 typedef int l_write_t(struct tty *tp, struct uio *uio, int flag);
236 typedef int l_ioctl_t(struct tty *tp, u_long cmd, caddr_t data, int flag,
238 typedef int l_rint_t (int c, struct tty *tp);
[all …]
H A Dsubr_prf.h86 extern int prf(const char *fmt, va_list ap, int flags, struct tty *ttyp) __printflike(1, 0);
H A Dproc_internal.h144 struct tty *s_ttyp; /* (SL) Controlling terminal */
865 extern struct pgrp *tty_pgrp_locked(struct tty * tp);
876 extern struct tty *session_set_tty_locked(struct session *sessp, struct tty *);
877 extern struct tty *session_clear_tty_locked(struct session *sess);
878 extern struct tty *session_tty(struct session *sess);
H A Dtypes.h220 struct tty;
H A Dsystm.h158 void ttyprintf(struct tty *, const char *, ...) __printflike(2, 3);
H A Dsignalvar.h216 void tty_pgsignal_locked(struct tty * tp, int sig, int checkctty);
/xnu-8792.41.9/bsd/kern/
H A Dsubr_prf.c112 struct tty *tty; member
125 extern struct tty cons; /* standard console tty */
126 extern struct tty *constty; /* pointer to console "window" tty */
142 pca->tty = sessp->s_ttyp; in putchar_args_init()
143 if (pca->tty != TTY_NULL) { in putchar_args_init()
144 ttyhold(pca->tty); in putchar_args_init()
152 if (pca->tty != TTY_NULL) { in putchar_args_destroy()
153 ttyfree(pca->tty); in putchar_args_destroy()
175 if (pca.tty != NULL) { in uprintf()
176 tty_lock(pca.tty); in uprintf()
[all …]
H A Dtty.c122 __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 Dtty_ptmx.c100 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 Dtty_dev.h38 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 Dtty_dev.c99 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 Dtty_compat.c88 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 Dtty_conf.c169 l_noioctl(__unused struct tty *tp, __unused u_long cmd, __unused caddr_t data, in l_noioctl()
176 l_nostart(__unused struct tty *tp) in l_nostart()
/xnu-8792.41.9/bsd/dev/i386/
H A Dkm.c62 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 Dcons.c58 struct tty *constty; /* current console device */
64 extern struct tty *km_tty[1];
H A Dconf.c96 extern struct tty *km_tty[];
/xnu-8792.41.9/bsd/dev/arm/
H A Dkm.c39 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 Dcons.c23 struct tty *constty; /* current console device */
29 extern struct tty *km_tty[1];
/xnu-8792.41.9/bsd/machine/
H A Dcons.h38 struct tty *cn_tp; /* tty structure for console device */
59 extern struct tty *cn_tty;
61 extern struct tty *constty; /* current console device */
/xnu-8792.41.9/security/
H A Dmac_pty.c37 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-8792.41.9/tools/lldbmacros/
H A Dprocess.py940 tty = kern.GetValueFromAddress(cmd_args[0], 'struct tty *')
942 …input to raw queue: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_rawq.c_cs), tty.t_rawq.c_c…
943 …input to canonical queue: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_canq.c_cs), tty.t_canq.c_c…
944 …output data: {0: <#18x} \"{1: <s}\"".format(unsigned(tty.t_outq.c_cs), tty.t_outq.c_c…
973 tty_state = unsigned(tty.t_state)
984 print("Flags: 0x{0:0>8x}".format(unsigned(tty.t_flags)))
985 print("Foreground Process Group: 0x{0:0>16x}".format(unsigned(tty.t_pgrp)))
986 print("Enclosing session: 0x{0:0>16x}".format(unsigned(tty.t_session)))
988 print("\tInput Flags: 0x{0:0>8x}".format(unsigned(tty.t_termios.c_iflag)))
989 print("\tOutput Flags: 0x{0:0>8x}".format(unsigned(tty.t_termios.c_oflag)))
[all …]
/xnu-8792.41.9/bsd/man/man4/
H A DMakefile40 tty.4 \
/xnu-8792.41.9/bsd/dev/random/
H A Drandomdev.c60 random_stop(__unused struct tty *tp, __unused int rw) in random_stop()
/xnu-8792.41.9/bsd/dev/arm64/
H A Dconf.c72 extern struct tty *km_tty[];

12