Home
last modified time | relevance | path

Searched refs:snp_tty (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/snp/
H A Dsnp.c108 struct tty *snp_tty; /* (r) TTY we're snooping. */ member
120 tp = ss->snp_tty; in snp_dtor()
125 ss->snp_tty = NULL; in snp_dtor()
164 tp = ss->snp_tty; in snp_read()
204 tp = ss->snp_tty; in snp_write()
253 tp = ss->snp_tty; in snp_ioctl()
257 ss->snp_tty = NULL; in snp_ioctl()
270 error = ttyhook_register(&ss->snp_tty, td->td_proc, in snp_ioctl()
277 tp = ss->snp_tty; in snp_ioctl()
285 if (ss->snp_tty == NULL) in snp_ioctl()
[all …]
/freebsd/usr.sbin/watch/
H A Dwatch.c214 int snp_tty; in attach_snp() local
216 snp_tty = open(dev_name, O_RDONLY | O_NONBLOCK); in attach_snp()
217 if (snp_tty < 0) in attach_snp()
219 if (ioctl(snp_io, SNPSTTY, &snp_tty) != 0) in attach_snp()
221 close(snp_tty); in attach_snp()