Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
n_tty.c File Reference
#include <linux/types.h>
#include <linux/major.h>
#include <linux/errno.h>
#include <linux/signal.h>
#include <linux/fcntl.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/tty.h>
#include <linux/timer.h>
#include <linux/ctype.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/bitops.h>
#include <linux/audit.h>
#include <linux/file.h>
#include <linux/uaccess.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define WAKEUP_CHARS   256
 
#define TTY_THRESHOLD_THROTTLE   128 /* now based on remaining room */
 
#define TTY_THRESHOLD_UNTHROTTLE   128
 
#define ECHO_OP_START   0xff
 
#define ECHO_OP_MOVE_BACK_COL   0x80
 
#define ECHO_OP_SET_CANON_COL   0x81
 
#define ECHO_OP_ERASE_TAB   0x82
 

Functions

int is_ignored (int sig)
 
ssize_t redirected_tty_write (struct file *, const char __user *, size_t, loff_t *)
 
void n_tty_inherit_ops (struct tty_ldisc_ops *ops)
 
 EXPORT_SYMBOL_GPL (n_tty_inherit_ops)
 

Variables

struct tty_ldisc_ops tty_ldisc_N_TTY
 

Macro Definition Documentation

#define ECHO_OP_ERASE_TAB   0x82

Definition at line 74 of file n_tty.c.

#define ECHO_OP_MOVE_BACK_COL   0x80

Definition at line 72 of file n_tty.c.

#define ECHO_OP_SET_CANON_COL   0x81

Definition at line 73 of file n_tty.c.

#define ECHO_OP_START   0xff

Definition at line 71 of file n_tty.c.

#define TTY_THRESHOLD_THROTTLE   128 /* now based on remaining room */

Definition at line 62 of file n_tty.c.

#define TTY_THRESHOLD_UNTHROTTLE   128

Definition at line 63 of file n_tty.c.

#define WAKEUP_CHARS   256

Definition at line 55 of file n_tty.c.

Function Documentation

EXPORT_SYMBOL_GPL ( n_tty_inherit_ops  )
int is_ignored ( int  sig)

Definition at line 1451 of file n_tty.c.

void n_tty_inherit_ops ( struct tty_ldisc_ops ops)

n_tty_inherit_ops - inherit N_TTY methods : struct tty_ldisc_ops where to save N_TTY methods

Used by a generic struct tty_ldisc_ops to easily inherit N_TTY methods.

Definition at line 2141 of file n_tty.c.

ssize_t redirected_tty_write ( struct file file,
const char __user buf,
size_t  count,
loff_t *  ppos 
)

Definition at line 1163 of file tty_io.c.

Variable Documentation

struct tty_ldisc_ops tty_ldisc_N_TTY
Initial value:
= {
.magic = TTY_LDISC_MAGIC,
.name = "n_tty",
.open = n_tty_open,
.close = n_tty_close,
.flush_buffer = n_tty_flush_buffer,
.chars_in_buffer = n_tty_chars_in_buffer,
.read = n_tty_read,
.write = n_tty_write,
.ioctl = n_tty_ioctl,
.set_termios = n_tty_set_termios,
.poll = n_tty_poll,
.receive_buf = n_tty_receive_buf,
.write_wakeup = n_tty_write_wakeup
}

Definition at line 2117 of file n_tty.c.