Searched refs:pty (Results 1 - 40 of 40) sorted by relevance

/linux-4.4.14/arch/um/drivers/
H A Dpty.c81 char *pty, *bank, *cp; getmaster() local
84 pty = &line[strlen("/dev/ptyp")]; getmaster()
86 line[strlen("/dev/pty")] = *bank; getmaster()
87 *pty = '0'; getmaster()
93 *pty = *cp; getmaster()
109 printk(UM_KERN_ERR "getmaster - no usable host pty devices\n"); getmaster()
142 .type = "pty",
H A DMakefile56 obj-$(CONFIG_PTY_CHAN) += pty.o
64 USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o vde_user.o
H A Dslip_user.c134 printk(UM_KERN_ERR "slip-open : Failed to open pty, err = %d\n", slip_open()
H A Dchan_kern.c427 { "pty", &pty_ops },
430 { "pty", &not_configged_ops },
/linux-4.4.14/arch/um/os-Linux/
H A Dtty.c45 printk(UM_KERN_ERR "get_pty : Couldn't grant pty - " get_pty()
52 printk(UM_KERN_ERR "get_pty : Couldn't unlock pty - " get_pty()
H A Dsigio.c10 #include <pty.h>
432 struct openpty_arg pty = { .master = -1, .slave = -1 }; check_one_sigio() local
435 initial_thread_cb(openpty_cb, &pty); check_one_sigio()
436 if (pty.err) { check_one_sigio()
438 -pty.err); check_one_sigio()
442 master = pty.master; check_one_sigio()
443 slave = pty.slave; check_one_sigio()
447 "pty\n"); check_one_sigio()
535 "skipping pty SIGIO check\n"); check_sigio()
/linux-4.4.14/drivers/tty/
H A Dpty.c85 * (1) trying to send data to the pty, or (2) waiting in wait_until_sent()
86 * for the pty buffer to be drained.
95 * pty_write - write to a pty
103 * the other side of the pty/tty pair.
151 /* Set the lock flag on a pty */ pty_set_lock()
170 /* Set the packet mode on a pty */ pty_set_pktmode()
192 /* Get the packet mode of a pty */ pty_get_pktmode()
304 struct tty_struct *pty = tty->link; pty_resize() local
313 rpgrp = tty_get_pgrp(pty); pty_resize()
324 pty->winsize = *ws; /* Never used so will go away soon */ pty_resize()
335 * Propagates the TIOCPKT status to the master pty.
337 * NB: only the master pty can be in packet mode so only the slave
367 * pty_common_install - set up the pty pair
368 * @driver: the pty driver
372 * Perform the initial set up for the tty/pty pair. Called from the
492 case TIOCSIG: /* Send signal to other side of pty */ pty_bsd_ioctl()
508 * The master side of a pty can do TIOCSPTLCK and thus
555 panic("Couldn't allocate pty driver"); legacy_pty_init()
562 panic("Couldn't allocate pty slave driver"); legacy_pty_init()
565 pty_driver->name = "pty"; legacy_pty_init()
594 panic("Couldn't register pty driver"); legacy_pty_init()
596 panic("Couldn't register pty slave driver"); legacy_pty_init()
621 case TIOCSIG: /* Send signal to other side of pty */ pty_unix98_ioctl()
629 * ptm_unix98_lookup - find a pty master
633 * Look up a pty master device. Called under the tty_mutex for now.
645 * pts_unix98_lookup - find a pty slave
649 * Look up a pty master device. Called under the tty_mutex for now.
728 * ptmx_open - open a unix 98 pty master
732 * Allocate a unix98 pty master device from the ptmx driver.
736 * allocated_ptys_lock handles the list of free pty numbers
H A Dtty_ldisc.c517 * overlapping ldisc change (including on the other end of pty pairs),
518 * the close of one side of a tty/pty pair, and eventually hangup.
656 * In the pty pair case this occurs in the close() path of the
722 * @o_tty: pair tty for pty/tty pairs
724 * Called during the initial open of a tty/pty pair in order to set up the
764 * @tty: tty being shut down (or one end of pty pair)
766 * Called during the final close of a tty or a pty pair in order to shut
H A Dtty_io.c19 * the low-level tty routines (serial.c, pty.c, console.c). This
1308 * pty_line_name - generate name for a pty
1489 * could also be an active device. The pty drivers require special
1497 * a reference count of 1. If a pair was created for pty/tty use
1498 * and the other was a pty master then it too has a reference count of 1.
1594 * tty_flush_works - flush all works of a tty/pty pair
1595 * @tty: tty device to flush works for (or either end of a pty pair)
1675 * Release both @tty and a possible linked partner (think pty pair),
1796 /* If tty is pty master, lock the slave pty (stable lock order) */ tty_release()
1852 printk(KERN_WARNING "%s: bad pty slave count (%d) for %s\n", tty_release()
2019 * Open-counting is needed for pty masters, as well as for keeping
2023 * The termios state of a pty is reset on first open so that
2544 * @real_tty: tty side of the tty passed by the user if a pty else the tty
2559 * testing if the tty is NOT a master pty. tiocgpgrp()
2620 * @real_tty: tty side of the tty passed by the user if a pty else the tty
2633 * testing if the tty is NOT a master pty. tiocgsid()
2827 * if pty, return the slave side (real_tty)
H A Dn_tty.c1142 /* notify pty master of flush */ isig()
1753 /* Unthrottle if handling overflow on pty */ n_tty_receive_buf_common()
H A Dtty_ioctl.c537 * A master pty's termios should never be set.
/linux-4.4.14/drivers/media/platform/vivid/
H A Dvivid-rds-gen.c67 data[1].lsb = rds->pty << 5; vivid_rds_generate()
68 data[1].msb = (rds->pty >> 3) | (rds->tp << 2); vivid_rds_generate()
128 data[3].lsb = rds->pty << 5; vivid_rds_generate()
131 data[3].msb |= rds->pty >> 3; vivid_rds_generate()
144 rds->pty = alt ? 29 : 2; vivid_rds_gen_fill()
147 rds->pty = alt ? 16 : 3; vivid_rds_gen_fill()
H A Dvivid-rds-gen.h37 u8 pty; member in struct:vivid_rds_gen
H A Dvivid-radio-common.c83 rds->pty = dev->radio_tx_rds_pty->cur.val; vivid_radio_rds_init()
102 v4l2_ctrl_s_ctrl(dev->radio_rx_rds_pty, rds->pty); vivid_radio_rds_init()
/linux-4.4.14/fs/proc/
H A Dproc_tty.c55 seq_puts(m, "pty:master"); show_tty_range()
57 seq_puts(m, "pty:slave"); show_tty_range()
59 seq_puts(m, "pty"); show_tty_range()
/linux-4.4.14/arch/mips/include/uapi/asm/
H A Dioctls.h36 #define TIOCPKT 0x5470 /* pty: set/clear packet mode */
44 #define TIOCPKT_IOCTL 0x40 /* state change of pty driver */
86 #define TIOCGPTN _IOR('T', 0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
H A Dtermbits.h206 #define EXTPROC 0200000 /* External processing on pty */
/linux-4.4.14/drivers/media/radio/
H A Dradio-miropcm20.c361 u8 pty; pcm20_thread() local
363 res = rds_cmd(dev->aci, RDS_PTYTATP, &pty, 1); pcm20_thread()
365 v4l2_ctrl_s_ctrl(dev->rds_ms, !!(pty & 0x01)); pcm20_thread()
366 v4l2_ctrl_s_ctrl(dev->rds_ta, !!(pty & 0x02)); pcm20_thread()
367 v4l2_ctrl_s_ctrl(dev->rds_tp, !!(pty & 0x80)); pcm20_thread()
368 v4l2_ctrl_s_ctrl(dev->rds_pty, (pty >> 2) & 0x1f); pcm20_thread()
/linux-4.4.14/include/uapi/asm-generic/
H A Dioctls.h68 #define TIOCGPTN _IOR('T', 0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
75 #define TIOCSIG _IOW('T', 0x36, int) /* pty: generate signal */
/linux-4.4.14/include/linux/
H A Ddevpts_fs.h34 /* Dummy stubs in the no-pty case */ devpts_new_index()
H A Dtty.h23 * Lock subclasses are necessary for handling nested locking with pty pairs.
26 * legacy_mutex - Nested tty locks are necessary for releasing pty pairs.
27 * The stable lock order is master pty first, then slave pty.
29 * Subclassing this lock enables the slave pty to hold its
32 * signal chars. The stable lock order is slave pty, then
267 /* Protects ldisc changes: Lock tty not pty */
342 #define TTY_PTY_LOCK 16 /* pty private */
H A Dtty_driver.h395 * is only applicable to the pty driver.
433 /* pty subtypes (magic, used by tty_io.c) */
/linux-4.4.14/scripts/kconfig/
H A Dconfdata.c1124 int i, cnt, pby, pty, ptm; /* pby: probability of boolean = y conf_set_all_new_symbols() local
1125 * pty: probability of tristate = y conf_set_all_new_symbols()
1129 pby = 50; pty = ptm = 33; /* can't go as the default in switch-case conf_set_all_new_symbols()
1153 pby = p[0]; ptm = pby/2; pty = pby-ptm; conf_set_all_new_symbols()
1156 pty = p[0]; ptm = p[1]; pby = pty + ptm; conf_set_all_new_symbols()
1159 pby = p[0]; pty = p[1]; ptm = p[2]; conf_set_all_new_symbols()
1163 if( pty+ptm > 100 ) { conf_set_all_new_symbols()
1195 if (cnt < pty) for_all_symbols()
1197 else if (cnt < (pty+ptm)) for_all_symbols()
/linux-4.4.14/arch/powerpc/include/uapi/asm/
H A Dioctls.h95 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
/linux-4.4.14/arch/parisc/include/uapi/asm/
H A Dioctls.h55 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
/linux-4.4.14/arch/xtensa/include/uapi/asm/
H A Dioctls.h100 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
/linux-4.4.14/arch/alpha/include/uapi/asm/
H A Dioctls.h95 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
/linux-4.4.14/arch/sh/include/uapi/asm/
H A Dioctls.h88 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
/linux-4.4.14/arch/sparc/include/uapi/asm/
H A Dioctls.h87 /* Get minor device of a pty master's FD -- Solaris equiv is ISPTM */
/linux-4.4.14/include/uapi/linux/
H A Dsysctl.h141 KERN_PTY=62, /* dir: pty driver */
239 /* /proc/sys/kernel/pty */
/linux-4.4.14/include/linux/mfd/
H A Dsi476x-core.h328 * @pty: Current channel's PTY code.
338 u8 pty; member in struct:si476x_rds_status_report
/linux-4.4.14/tools/testing/selftests/rcutorture/bin/
H A Dfunctions.sh192 echo -monitor stdio -serial pty -S
/linux-4.4.14/fs/devpts/
H A Dinode.c80 .procname = "pty",
579 * pty code needs to hold extra references in case of last /dev/tty close
/linux-4.4.14/drivers/isdn/gigaset/
H A Dcapi.c1573 "CONNECT_REQ", "Called pty subaddr"); do_connect_req()
1575 "CONNECT_REQ", "Calling pty subaddr"); do_connect_req()
/linux-4.4.14/drivers/net/ppp/
H A Dppp_async.c660 * for example on a pty with both the master and slave ppp_async_push()
/linux-4.4.14/kernel/
H A Dsysctl_binary.c126 { CTL_DIR, KERN_PTY, "pty", bin_pty_table },
/linux-4.4.14/drivers/mfd/
H A Dsi476x-cmd.c947 report->pty = 0x1f & resp[3]; si476x_core_cmd_fm_rds_status()
/linux-4.4.14/drivers/tty/vt/
H A Dvt.c832 * @real_tty: real tty (different to tty if a pty/tty pair)
/linux-4.4.14/security/smack/
H A Dsmack_lsm.c3432 * pty with respect. smack_d_instantiate()
/linux-4.4.14/drivers/isdn/hardware/eicon/
H A Dmessage.c4362 /* 3pty conference pending */ control_rc()

Completed in 1943 milliseconds