73#define N_PROFIBUS_FDL 10
79#define N_GIGASET_M101 16
87#define N_TRACEROUTER 24
92#define N_DEVELOPMENT 29
101#define __DISABLED_CHAR '\0'
103#define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR])
104#define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT])
105#define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE])
106#define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL])
107#define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF])
108#define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME])
109#define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN])
110#define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC])
111#define START_CHAR(tty) ((tty)->termios.c_cc[VSTART])
112#define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP])
113#define SUSP_CHAR(tty) ((tty)->termios.c_cc[VSUSP])
114#define EOL_CHAR(tty) ((tty)->termios.c_cc[VEOL])
115#define REPRINT_CHAR(tty) ((tty)->termios.c_cc[VREPRINT])
116#define DISCARD_CHAR(tty) ((tty)->termios.c_cc[VDISCARD])
117#define WERASE_CHAR(tty) ((tty)->termios.c_cc[VWERASE])
118#define LNEXT_CHAR(tty) ((tty)->termios.c_cc[VLNEXT])
119#define EOL2_CHAR(tty) ((tty)->termios.c_cc[VEOL2])
121#define _I_FLAG(tty, f) ((tty)->termios.c_iflag & (f))
122#define _O_FLAG(tty, f) ((tty)->termios.c_oflag & (f))
123#define _C_FLAG(tty, f) ((tty)->termios.c_cflag & (f))
124#define _L_FLAG(tty, f) ((tty)->termios.c_lflag & (f))
126#define I_IGNBRK(tty) _I_FLAG((tty), IGNBRK)
127#define I_BRKINT(tty) _I_FLAG((tty), BRKINT)
128#define I_IGNPAR(tty) _I_FLAG((tty), IGNPAR)
129#define I_PARMRK(tty) _I_FLAG((tty), PARMRK)
130#define I_INPCK(tty) _I_FLAG((tty), INPCK)
131#define I_ISTRIP(tty) _I_FLAG((tty), ISTRIP)
132#define I_INLCR(tty) _I_FLAG((tty), INLCR)
133#define I_IGNCR(tty) _I_FLAG((tty), IGNCR)
134#define I_ICRNL(tty) _I_FLAG((tty), ICRNL)
135#define I_IUCLC(tty) _I_FLAG((tty), IUCLC)
136#define I_IXON(tty) _I_FLAG((tty), IXON)
137#define I_IXANY(tty) _I_FLAG((tty), IXANY)
138#define I_IXOFF(tty) _I_FLAG((tty), IXOFF)
139#define I_IMAXBEL(tty) _I_FLAG((tty), IMAXBEL)
140#define I_IUTF8(tty) _I_FLAG((tty), IUTF8)
142#define O_OPOST(tty) _O_FLAG((tty), OPOST)
143#define O_OLCUC(tty) _O_FLAG((tty), OLCUC)
144#define O_ONLCR(tty) _O_FLAG((tty), ONLCR)
145#define O_OCRNL(tty) _O_FLAG((tty), OCRNL)
146#define O_ONOCR(tty) _O_FLAG((tty), ONOCR)
147#define O_ONLRET(tty) _O_FLAG((tty), ONLRET)
148#define O_OFILL(tty) _O_FLAG((tty), OFILL)
149#define O_OFDEL(tty) _O_FLAG((tty), OFDEL)
150#define O_NLDLY(tty) _O_FLAG((tty), NLDLY)
151#define O_CRDLY(tty) _O_FLAG((tty), CRDLY)
152#define O_TABDLY(tty) _O_FLAG((tty), TABDLY)
153#define O_BSDLY(tty) _O_FLAG((tty), BSDLY)
154#define O_VTDLY(tty) _O_FLAG((tty), VTDLY)
155#define O_FFDLY(tty) _O_FLAG((tty), FFDLY)
157#define C_BAUD(tty) _C_FLAG((tty), CBAUD)
158#define C_CSIZE(tty) _C_FLAG((tty), CSIZE)
159#define C_CSTOPB(tty) _C_FLAG((tty), CSTOPB)
160#define C_CREAD(tty) _C_FLAG((tty), CREAD)
161#define C_PARENB(tty) _C_FLAG((tty), PARENB)
162#define C_PARODD(tty) _C_FLAG((tty), PARODD)
163#define C_HUPCL(tty) _C_FLAG((tty), HUPCL)
164#define C_CLOCAL(tty) _C_FLAG((tty), CLOCAL)
165#define C_CIBAUD(tty) _C_FLAG((tty), CIBAUD)
166#define C_CRTSCTS(tty) _C_FLAG((tty), CRTSCTS)
167#define C_CMSPAR(tty) _C_FLAG((tty), CMSPAR)
169#define L_ISIG(tty) _L_FLAG((tty), ISIG)
170#define L_ICANON(tty) _L_FLAG((tty), ICANON)
171#define L_XCASE(tty) _L_FLAG((tty), XCASE)
172#define L_ECHO(tty) _L_FLAG((tty), ECHO)
173#define L_ECHOE(tty) _L_FLAG((tty), ECHOE)
174#define L_ECHOK(tty) _L_FLAG((tty), ECHOK)
175#define L_ECHONL(tty) _L_FLAG((tty), ECHONL)
176#define L_NOFLSH(tty) _L_FLAG((tty), NOFLSH)
177#define L_TOSTOP(tty) _L_FLAG((tty), TOSTOP)
178#define L_ECHOCTL(tty) _L_FLAG((tty), ECHOCTL)
179#define L_ECHOPRT(tty) _L_FLAG((tty), ECHOPRT)
180#define L_ECHOKE(tty) _L_FLAG((tty), ECHOKE)
181#define L_FLUSHO(tty) _L_FLAG((tty), FLUSHO)
182#define L_PENDIN(tty) _L_FLAG((tty), PENDIN)
183#define L_IEXTEN(tty) _L_FLAG((tty), IEXTEN)
184#define L_EXTPROC(tty) _L_FLAG((tty), EXTPROC)
289static inline bool tty_io_error(
struct tty_struct* tty)
294static inline bool tty_throttled(
struct tty_struct* tty)
312 kref_get(&tty->
kref);
325 return tty_termios_baud_rate(&tty->termios);
396static inline void tty_audit_exit(
void) { }
397static inline void tty_audit_fork(
struct signal_struct* sig) { (void)sig; }
398static inline int tty_audit_push(
void) {
return 0; }
#define O_NONBLOCK
Definition fcntl.h:65
size_t a
Definition main.cpp:156
size_t b
Definition main.cpp:156
#define test_bit(nr, addr)
Definition bitops.h:124
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char * name
Definition drm_crtc.h:1242
uint32_t dev_t
Definition kernel.h:52
uint8_t u8
Definition kernel.h:14
int spinlock_t
Definition kernel.h:44
unsigned int speed_t
Definition termios.h:79
void tty_write_message(struct tty_struct *tty, char *msg)
void tty_vhangup(struct tty_struct *tty)
void tty_kref_put(struct tty_struct *tty)
struct tty_struct * tty_kopen_exclusive(dev_t device)
void tty_unthrottle(struct tty_struct *tty)
int tty_lock_interruptible(struct tty_struct *tty)
long vt_compat_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
int tty_mode_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
const char * tty_driver_name(const struct tty_struct *tty)
int tty_standard_install(struct tty_driver *driver, struct tty_struct *tty)
void tty_encode_baud_rate(struct tty_struct *tty, speed_t ibaud, speed_t obaud)
void tty_lock_slave(struct tty_struct *tty)
void tty_vhangup_self(void)
int n_tty_ioctl_helper(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
void disassociate_ctty(int priv)
bool tty_termios_hw_change(const struct ktermios *a, const struct ktermios *b)
bool tty_unthrottle_safe(struct tty_struct *tty)
void tty_unlock_slave(struct tty_struct *tty)
int tty_perform_flush(struct tty_struct *tty, unsigned long arg)
int tty_send_xchar(struct tty_struct *tty, u8 ch)
bool tty_throttle_safe(struct tty_struct *tty)
void tty_kclose(struct tty_struct *tty)
struct tty_struct * tty_init_dev(struct tty_driver *driver, int idx)
void tty_wait_until_sent(struct tty_struct *tty, long timeout)
int tty_put_char(struct tty_struct *tty, u8 c)
int tty_get_icount(struct tty_struct *tty, struct serial_icounter_struct *icount)
void do_SAK(struct tty_struct *tty)
void proc_clear_tty(struct task_struct *p)
void tty_driver_flush_buffer(struct tty_struct *tty)
unsigned int tty_write_room(struct tty_struct *tty)
struct tty_struct * tty_kopen_shared(dev_t device)
void tty_release_struct(struct tty_struct *tty, int idx)
unsigned char tty_get_frame_size(unsigned int cflag)
void tty_set_lock_subclass(struct tty_struct *tty)
void tty_save_termios(struct tty_struct *tty)
dev_t tty_devnum(struct tty_struct *tty)
void tty_init_termios(struct tty_struct *tty)
int tty_set_termios(struct tty_struct *tty, struct ktermios *kt)
int tty_do_resize(struct tty_struct *tty, struct winsize *ws)
void n_tty_inherit_ops(struct tty_ldisc_ops *ops)
const char * tty_name(const struct tty_struct *tty)
unsigned char tty_get_char_size(unsigned int cflag)
struct pid * tty_get_pgrp(struct tty_struct *tty)
void stop_tty(struct tty_struct *tty)
int tty_get_tiocm(struct tty_struct *tty)
struct tty_struct * get_current_tty(void)
int tty_dev_name_to_number(const char *name, dev_t *number)
void __do_SAK(struct tty_struct *tty)
int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
void tty_lock(struct tty_struct *tty)
tty_struct_flags
Definition tty.h:268
@ TTY_LDISC_CHANGING
Definition tty.h:279
@ TTY_IO_ERROR
Definition tty.h:270
@ TTY_OTHER_CLOSED
Definition tty.h:271
@ TTY_LDISC_OPEN
Definition tty.h:274
@ TTY_DO_WRITE_WAKEUP
Definition tty.h:273
@ TTY_NO_WRITE_SPLIT
Definition tty.h:276
@ TTY_HUPPED
Definition tty.h:277
@ TTY_EXCLUSIVE
Definition tty.h:272
@ TTY_LDISC_HALTED
Definition tty.h:280
@ TTY_THROTTLED
Definition tty.h:269
@ TTY_PTY_LOCK
Definition tty.h:275
@ TTY_HUPPING
Definition tty.h:278
void tty_wakeup(struct tty_struct *tty)
void start_tty(struct tty_struct *tty)
void tty_unlock(struct tty_struct *tty)
void tty_hangup(struct tty_struct *tty)
int tty_hung_up_p(struct file *filp)
unsigned int tty_chars_in_buffer(struct tty_struct *tty)
int is_current_pgrp_orphaned(void)
unsigned int f_flags
Definition fs.h:149
Definition tty_ldisc.h:57
Definition tty_driver.h:122
struct file * file
Definition tty.h:263
struct tty_struct * tty
Definition tty.h:262
struct list_head list
Definition tty.h:264
Definition tty_ldisc.h:126
Definition tty_ldisc.h:164
Definition tty_driver.h:80
spinlock_t files_lock
Definition tty.h:251
struct fasync_struct * fasync
Definition tty.h:245
bool stopped
Definition tty.h:228
unsigned int receive_room
Definition tty.h:223
struct pid * pgrp
Definition tty.h:233
int count
Definition tty.h:222
struct tty_driver * driver
Definition tty.h:207
struct ktermios termios termios_locked
Definition tty.h:219
struct mutex legacy_mutex
Definition tty.h:215
char name[64]
Definition tty.h:220
struct mutex atomic_write_lock
Definition tty.h:214
struct mutex throttle_mutex
Definition tty.h:216
struct tty_struct::@94 flow
struct ld_semaphore ldisc_sem
Definition tty.h:212
spinlock_t lock
Definition tty.h:227
struct work_struct SAK_work
Definition tty.h:257
void * disc_data
Definition tty.h:249
unsigned long flags
Definition tty.h:221
u8 * write_buf
Definition tty.h:253
int flow_change
Definition tty.h:242
bool tco_stopped
Definition tty.h:229
struct pid * session
Definition tty.h:234
int index
Definition tty.h:205
struct list_head tty_files
Definition tty.h:255
struct tty_struct::@95 ctrl
wait_queue_head_t read_wait
Definition tty.h:247
struct mutex winsize_mutex
Definition tty.h:218
struct work_struct hangup_work
Definition tty.h:248
unsigned char pktstatus
Definition tty.h:236
struct tty_struct * link
Definition tty.h:244
bool packet
Definition tty.h:237
const struct tty_operations * ops
Definition tty.h:209
struct kref kref
Definition tty.h:204
struct rw_semaphore termios_rwsem
Definition tty.h:217
bool hw_stopped
Definition tty.h:240
void * driver_data
Definition tty.h:250
bool closing
Definition tty.h:241
wait_queue_head_t write_wait
Definition tty.h:246
struct device * dev
Definition tty.h:206
struct tty_ldisc * ldisc
Definition tty.h:211
int write_cnt
Definition tty.h:252
struct tty_port * port
Definition tty.h:208
Definition workqueue.h:44