tty_operationsRegular
4.4: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct inode *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
const struct file_operations *proc_fops;
};
4.8: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
const struct file_operations *proc_fops;
};
4.10: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
const struct file_operations *proc_fops;
};
4.13: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
const struct file_operations *proc_fops;
};
4.15: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
const struct file_operations *proc_fops;
};
4.18: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
5.0: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
5.3: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
5.4: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
5.8: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
5.11: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
5.13: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
5.15: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
unsigned int (*write_room)(struct tty_struct *);
unsigned int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
5.19: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
unsigned int (*write_room)(struct tty_struct *);
unsigned int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
6.2: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
unsigned int (*write_room)(struct tty_struct *);
unsigned int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, const struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
6.5: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
unsigned int (*write_room)(struct tty_struct *);
unsigned int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, const struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
6.8: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
ssize_t (*write)(struct tty_struct *, const u8 *, size_t);
int (*put_char)(struct tty_struct *, u8);
void (*flush_chars)(struct tty_struct *);
unsigned int (*write_room)(struct tty_struct *);
unsigned int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, const struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, u8);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
arm64: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
armhf: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
ppc64el: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
riscv64: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*proc_show)(struct seq_file *, void *);
};
aws: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
azure: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
gcp: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
lowlatency: ✅struct tty_operations {
struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int);
int (*install)(struct tty_driver *, struct tty_struct *);
void (*remove)(struct tty_driver *, struct tty_struct *);
int (*open)(struct tty_struct *, struct file *);
void (*close)(struct tty_struct *, struct file *);
void (*shutdown)(struct tty_struct *);
void (*cleanup)(struct tty_struct *);
int (*write)(struct tty_struct *, const unsigned char *, int);
int (*put_char)(struct tty_struct *, unsigned char);
void (*flush_chars)(struct tty_struct *);
int (*write_room)(struct tty_struct *);
int (*chars_in_buffer)(struct tty_struct *);
int (*ioctl)(struct tty_struct *, unsigned int, long unsigned int);
long int (*compat_ioctl)(struct tty_struct *, unsigned int, long unsigned int);
void (*set_termios)(struct tty_struct *, struct ktermios *);
void (*throttle)(struct tty_struct *);
void (*unthrottle)(struct tty_struct *);
void (*stop)(struct tty_struct *);
void (*start)(struct tty_struct *);
void (*hangup)(struct tty_struct *);
int (*break_ctl)(struct tty_struct *, int);
void (*flush_buffer)(struct tty_struct *);
void (*set_ldisc)(struct tty_struct *);
void (*wait_until_sent)(struct tty_struct *, int);
void (*send_xchar)(struct tty_struct *, char);
int (*tiocmget)(struct tty_struct *);
int (*tiocmset)(struct tty_struct *, unsigned int, unsigned int);
int (*resize)(struct tty_struct *, struct winsize *);
int (*set_termiox)(struct tty_struct *, struct termiox *);
int (*get_icount)(struct tty_struct *, struct serial_icounter_struct *);
int (*get_serial)(struct tty_struct *, struct serial_struct *);
int (*set_serial)(struct tty_struct *, struct serial_struct *);
void (*show_fdinfo)(struct tty_struct *, struct seq_file *);
int (*poll_init)(struct tty_driver *, int, char *);
int (*poll_get_char)(struct tty_driver *, int);
void (*poll_put_char)(struct tty_driver *, int, char);
int (*proc_show)(struct seq_file *, void *);
};
Regular
4.4 and 4.8 ⚠️struct tty_struct * (*lookup)(struct tty_driver *, struct inode *, int) ➡️ struct tty_struct * (*lookup)(struct tty_driver *, struct file *, int)
4.8 and 4.10 ✅
4.10 and 4.13 ✅
4.13 and 4.15 ⚠️void (*show_fdinfo)(struct tty_struct *, struct seq_file *)
4.15 and 4.18 ⚠️int (*proc_show)(struct seq_file *, void *)
const struct file_operations *proc_fops
4.18 and 5.0 ⚠️int (*get_serial)(struct tty_struct *, struct serial_struct *)
int (*set_serial)(struct tty_struct *, struct serial_struct *)
5.0 and 5.3 ✅
5.3 and 5.4 ✅
5.4 and 5.8 ✅
5.8 and 5.11 ⚠️int (*set_termiox)(struct tty_struct *, struct termiox *)
5.11 and 5.13 ✅
5.13 and 5.15 ⚠️int (*write_room)(struct tty_struct *) ➡️ unsigned int (*write_room)(struct tty_struct *)
int (*chars_in_buffer)(struct tty_struct *) ➡️ unsigned int (*chars_in_buffer)(struct tty_struct *)
5.15 and 5.19 ✅
5.19 and 6.2 ⚠️void (*set_termios)(struct tty_struct *, struct ktermios *) ➡️ void (*set_termios)(struct tty_struct *, const struct ktermios *)
6.2 and 6.5 ✅
6.5 and 6.8 ⚠️int (*write)(struct tty_struct *, const unsigned char *, int) ➡️ ssize_t (*write)(struct tty_struct *, const u8 *, size_t)
int (*put_char)(struct tty_struct *, unsigned char) ➡️ int (*put_char)(struct tty_struct *, u8)
void (*send_xchar)(struct tty_struct *, char) ➡️ void (*send_xchar)(struct tty_struct *, u8)
amd64 and arm64 ✅
amd64 and armhf ✅
amd64 and ppc64el ✅
amd64 and riscv64 ⚠️int (*poll_init)(struct tty_driver *, int, char *)
int (*poll_get_char)(struct tty_driver *, int)
void (*poll_put_char)(struct tty_driver *, int, char)
generic and aws ✅
generic and azure ✅
generic and gcp ✅
generic and lowlatency ✅