Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
line.c File Reference
#include <linux/irqreturn.h>
#include <linux/kd.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include "chan.h"
#include <irq_kern.h>
#include <irq_user.h>
#include <kern_util.h>
#include <os.h>

Go to the source code of this file.

Data Structures

struct  winch
 

Macros

#define LINE_BUFSIZE   4096
 

Functions

int line_write_room (struct tty_struct *tty)
 
int line_chars_in_buffer (struct tty_struct *tty)
 
void line_flush_buffer (struct tty_struct *tty)
 
void line_flush_chars (struct tty_struct *tty)
 
int line_put_char (struct tty_struct *tty, unsigned char ch)
 
int line_write (struct tty_struct *tty, const unsigned char *buf, int len)
 
void line_set_termios (struct tty_struct *tty, struct ktermios *old)
 
void line_throttle (struct tty_struct *tty)
 
void line_unthrottle (struct tty_struct *tty)
 
int line_setup_irq (int fd, int input, int output, struct line *line, void *data)
 
int line_open (struct tty_struct *tty, struct file *filp)
 
int line_install (struct tty_driver *driver, struct tty_struct *tty, struct line *line)
 
void line_cleanup (struct tty_struct *tty)
 
void line_close (struct tty_struct *tty, struct file *filp)
 
void line_hangup (struct tty_struct *tty)
 
void close_lines (struct line *lines, int nlines)
 
int setup_one_line (struct line *lines, int n, char *init, const struct chan_opts *opts, char **error_out)
 
int line_setup (char **conf, unsigned int num, char **def, char *init, char *name)
 
int line_config (struct line *lines, unsigned int num, char *str, const struct chan_opts *opts, char **error_out)
 
int line_get_config (char *name, struct line *lines, unsigned int num, char *str, int size, char **error_out)
 
int line_id (char **str, int *start_out, int *end_out)
 
int line_remove (struct line *lines, unsigned int num, int n, char **error_out)
 
int register_lines (struct line_driver *line_driver, const struct tty_operations *ops, struct line *lines, int nlines)
 
void register_winch_irq (int fd, int tty_fd, int pid, struct tty_struct *tty, unsigned long stack)
 
 __uml_exitcall (winch_cleanup)
 
charadd_xterm_umid (char *base)
 

Macro Definition Documentation

#define LINE_BUFSIZE   4096

Definition at line 16 of file line.c.

Function Documentation

__uml_exitcall ( winch_cleanup  )
char* add_xterm_umid ( char base)

Definition at line 745 of file line.c.

void close_lines ( struct line lines,
int  nlines 
)

Definition at line 370 of file line.c.

int line_chars_in_buffer ( struct tty_struct tty)

Definition at line 63 of file line.c.

void line_cleanup ( struct tty_struct tty)

Definition at line 346 of file line.c.

void line_close ( struct tty_struct tty,
struct file filp 
)

Definition at line 356 of file line.c.

int line_config ( struct line lines,
unsigned int  num,
char str,
const struct chan_opts opts,
char **  error_out 
)

Definition at line 470 of file line.c.

void line_flush_buffer ( struct tty_struct tty)

Definition at line 168 of file line.c.

void line_flush_chars ( struct tty_struct tty)

Definition at line 182 of file line.c.

int line_get_config ( char name,
struct line lines,
unsigned int  num,
char str,
int  size,
char **  error_out 
)

Definition at line 494 of file line.c.

void line_hangup ( struct tty_struct tty)

Definition at line 363 of file line.c.

int line_id ( char **  str,
int start_out,
int end_out 
)

Definition at line 529 of file line.c.

int line_install ( struct tty_driver driver,
struct tty_struct tty,
struct line line 
)

Definition at line 330 of file line.c.

int line_open ( struct tty_struct tty,
struct file filp 
)

Definition at line 323 of file line.c.

int line_put_char ( struct tty_struct tty,
unsigned char  ch 
)

Definition at line 187 of file line.c.

int line_remove ( struct line lines,
unsigned int  num,
int  n,
char **  error_out 
)

Definition at line 544 of file line.c.

void line_set_termios ( struct tty_struct tty,
struct ktermios old 
)

Definition at line 219 of file line.c.

int line_setup ( char **  conf,
unsigned int  num,
char **  def,
char init,
char name 
)

Definition at line 437 of file line.c.

int line_setup_irq ( int  fd,
int  input,
int  output,
struct line line,
void data 
)

Definition at line 281 of file line.c.

void line_throttle ( struct tty_struct tty)

Definition at line 224 of file line.c.

void line_unthrottle ( struct tty_struct tty)

Definition at line 232 of file line.c.

int line_write ( struct tty_struct tty,
const unsigned char buf,
int  len 
)

Definition at line 192 of file line.c.

int line_write_room ( struct tty_struct tty)

Definition at line 50 of file line.c.

int register_lines ( struct line_driver line_driver,
const struct tty_operations ops,
struct line lines,
int  nlines 
)

Definition at line 553 of file line.c.

void register_winch_irq ( int  fd,
int  tty_fd,
int  pid,
struct tty_struct tty,
unsigned long  stack 
)

Definition at line 672 of file line.c.

int setup_one_line ( struct line lines,
int  n,
char init,
const struct chan_opts opts,
char **  error_out 
)

Definition at line 378 of file line.c.