tty =tty_port_tty_get(&port->port);if(!tty)return;if((priv->line_status ^ prev_line_status) & UART_DCD) usb_serial_handle_dcd_change(port, tty, priv->line_status & UART_DCD); tty_kref_put(tty); } 開發者ID:daltenty,項目名稱:kernel-ubuntu.trusty-vgt,代碼行數:47,代碼來源:pl230...
name = ttynam( lunit ) lunit INTEGER*4 Input Logical unit Return value character*n Output If nonblank returned: name=path name of device on lunit. Size n must be large enough for the longest path name. If empty string (all blanks) returned: lunit is not associated with a ...
staticvoidssu100_process_read_urb(struct urb *urb){structusb_serial_port*port=urb->context;structtty_struct*tty;intcount; tty =tty_port_tty_get(&port->port);if(!tty)return; count = ssu100_process_packet(urb, tty);if(count) tty_flip_buffer_push(tty); tty_kref_put(tty); } 开发者...
ttynam and isatty handle terminal port names.ttynam: Get Name of a Terminal PortThe function ttynam returns a blank padded path name of the terminal device associated with logical unit lunit.The function is called by: CHARACTER ttynam*24 name = ttynam( lunit ) lunit INTEGER*4 Input...
The function ttynam returns a blank padded path name of the terminal device associated with logical unit lunit.The function is called by:CHARACTER ttynam*24 name = ttynam( lunit ) lunit INTEGER*4 Input Logical unit Return value character*n Output If nonblank returned: name=path...