root/include/linux/tty_flip.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. tty_insert_flip_char
  2. tty_schedule_flip

   1 #ifndef _LINUX_TTY_FLIP_H
   2 #define _LINUX_TTY_FLIP_H
   3 
   4 #ifdef INCLUDE_INLINE_FUNCS
   5 #define _INLINE_ extern
   6 #else
   7 #define _INLINE_ extern __inline__
   8 #endif
   9 
  10 _INLINE_ void tty_insert_flip_char(struct tty_struct *tty,
     /* [previous][next][first][last][top][bottom][index][help] */
  11                                    unsigned char ch, char flag)
  12 {
  13         if (tty->flip.count++ >= TTY_FLIPBUF_SIZE)
  14                 return;
  15         *tty->flip.flag_buf_ptr++ = flag;
  16         *tty->flip.char_buf_ptr++ = ch;
  17 }
  18 
  19 _INLINE_ void tty_schedule_flip(struct tty_struct *tty)
     /* [previous][next][first][last][top][bottom][index][help] */
  20 {
  21         queue_task(&tty->flip.tqueue, &tq_timer);
  22 }
  23 
  24 #undef _INLINE_
  25 
  26 
  27 #endif /* _LINUX_TTY_FLIP_H */
  28 
  29 
  30 
  31 
  32 
  33 
  34 

/* [previous][next][first][last][top][bottom][index][help] */