GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.kernel.org — TTY Struct — The Linux Kernel documentation TTY Struct¶
Initialization¶
Parameters
Description Initialise the termios structure for this tty. This runs under the
Name¶
Parameters
Description Convert a tty structure into a name. The name reflects the kernel naming policy and if udev is in use may not reflect user space Locking: none Reference counting¶
Parameters
Return a new reference to a tty object Description Locking: The caller must hold sufficient locks/counts to ensure that their existing reference cannot go away.
Parameters
Description Release a reference to the tty device and if need be let the kref layer destruct the object for us. Install¶
Parameters
Description If the driver overrides tty->ops->install, it still can call this function to perform the standard install operations. Read & Write¶
Parameters
Description Write one byte to the tty using the provided tty->ops-> Note the specific put_char operation in the driver layer may go away soon. Don’t call it directly, use this method Return the number of characters successfully output. Start & Stop¶
Parameters
Description Perform flow control to the driver. May be called on an already stopped
device and will not re-call the This functionality is used by both the line disciplines for halting incoming
flow and by the driver. It may therefore be called from any context, may be
under the tty
Parameters
Description Start a tty that has been stopped if at all possible. If tty was previously
stopped and is now being started, the
Wakeup¶
Parameters
Description Internal and external helper for wakeups of tty. This function informs the line discipline if present that the driver is ready to receive more output data. Hangup¶
Parameters
Description A carrier loss (virtual or otherwise) has occurred on tty. Schedule a hangup sequence to run after this event.
Parameters
Description The user has asked via system call for the terminal to be hung up. We do this synchronously so that when the syscall returns the process is complete. That guarantee is necessary for security reasons. Parameters
Return true if the tty has been subject to a vhangup or a carrier loss Misc¶
Parameters
Description Update the termios variables and send the necessary signals to peform a terminal resize correctly. TTY Struct Flags¶
Constants
Description These bits are used in the So that interrupts won’t be able to mess up the queues,
copy_to_cooked must be atomic with respect to itself, as must
tty->write. Thus, you must use the inline functions TTY Struct Reference¶
Definition: struct tty_struct {
struct kref kref;
int index;
struct device *dev;
struct tty_driver *driver;
struct tty_port *port;
const struct tty_operations *ops;
struct tty_ldisc *ldisc;
struct ld_semaphore ldisc_sem;
struct mutex atomic_write_lock;
struct mutex legacy_mutex;
struct mutex throttle_mutex;
struct rw_semaphore termios_rwsem;
struct mutex winsize_mutex;
struct ktermios termios, termios_locked;
char name[64];
unsigned long flags;
int count;
unsigned int receive_room;
struct winsize winsize;
struct {
spinlock_t lock;
bool stopped;
bool tco_stopped;
} flow;
struct {
struct pid *pgrp;
struct pid *session;
spinlock_t lock;
unsigned char pktstatus;
bool packet;
} ctrl;
bool hw_stopped;
bool closing;
int flow_change;
struct tty_struct *link;
struct fasync_struct *fasync;
wait_queue_head_t write_wait;
wait_queue_head_t read_wait;
wait_queue_head_t break_wait;
struct work_struct hangup_work;
void *disc_data;
void *driver_data;
spinlock_t files_lock;
int write_cnt;
u8 *write_buf;
struct list_head tty_files;
struct work_struct SAK_work;
};
Members
Description All of the state associated with a tty while the tty is open. Persistent
storage for tty devices is referenced here as port and is documented in
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |