Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
selection.h File Reference
#include <linux/tiocl.h>
#include <linux/vt_buffer.h>

Go to the source code of this file.

Functions

void clear_selection (void)
 
int set_selection (const struct tiocl_selection __user *sel, struct tty_struct *tty)
 
int paste_selection (struct tty_struct *tty)
 
int sel_loadlut (char __user *p)
 
int mouse_reporting (void)
 
void mouse_report (struct tty_struct *tty, int butt, int mrx, int mry)
 
unsigned shortscreen_pos (struct vc_data *vc, int w_offset, int viewed)
 
u16 screen_glyph (struct vc_data *vc, int offset)
 
void complement_pos (struct vc_data *vc, int offset)
 
void invert_screen (struct vc_data *vc, int offset, int count, int shift)
 
void getconsxy (struct vc_data *vc, unsigned char *p)
 
void putconsxy (struct vc_data *vc, unsigned char *p)
 
u16 vcs_scr_readw (struct vc_data *vc, const u16 *org)
 
void vcs_scr_writew (struct vc_data *vc, u16 val, u16 *org)
 
void vcs_scr_updated (struct vc_data *vc)
 

Variables

struct vc_datasel_cons
 
int console_blanked
 
unsigned char color_table []
 
int default_red []
 
int default_grn []
 
int default_blu []
 

Function Documentation

void clear_selection ( void  )

clear_selection - remove current selection

Remove the current selection highlight, if any from the console holding the selection. The caller must hold the console lock.

Definition at line 71 of file selection.c.

void complement_pos ( struct vc_data vc,
int  offset 
)

Definition at line 504 of file vt.c.

void getconsxy ( struct vc_data vc,
unsigned char p 
)

Definition at line 4153 of file vt.c.

void invert_screen ( struct vc_data vc,
int  offset,
int  count,
int  shift 
)

Definition at line 459 of file vt.c.

void mouse_report ( struct tty_struct tty,
int  butt,
int  mrx,
int  mry 
)

Definition at line 1360 of file vt.c.

int mouse_reporting ( void  )

Definition at line 1370 of file vt.c.

int paste_selection ( struct tty_struct tty)

Definition at line 336 of file selection.c.

void putconsxy ( struct vc_data vc,
unsigned char p 
)

Definition at line 4159 of file vt.c.

u16 screen_glyph ( struct vc_data vc,
int  offset 
)

Definition at line 4136 of file vt.c.

unsigned short* screen_pos ( struct vc_data vc,
int  w_offset,
int  viewed 
)

Definition at line 4148 of file vt.c.

int sel_loadlut ( char __user p)

set loadlut - load the LUT table : user table

Load the LUT table from user space. The caller must hold the console lock. Make a temporary copy so a partial update doesn't make a mess.

Definition at line 106 of file selection.c.

int set_selection ( const struct tiocl_selection __user sel,
struct tty_struct tty 
)

set_selection - set the current selection. : user selection info : the console tty

Invoked by the ioctl handle for the vt layer.

The entire selection process is managed under the console_lock. It's a lot under the lock but its hardly a performance path

Definition at line 158 of file selection.c.

u16 vcs_scr_readw ( struct vc_data vc,
const u16 org 
)

Definition at line 4166 of file vt.c.

void vcs_scr_updated ( struct vc_data vc)

Definition at line 4182 of file vt.c.

void vcs_scr_writew ( struct vc_data vc,
u16  val,
u16 org 
)

Definition at line 4173 of file vt.c.

Variable Documentation

unsigned char color_table[]

Definition at line 1027 of file vt.c.

int console_blanked

Definition at line 175 of file vt.c.

int default_blu[]

Definition at line 1035 of file vt.c.

int default_grn[]

Definition at line 1033 of file vt.c.

int default_red[]

Definition at line 1031 of file vt.c.

struct vc_data* sel_cons

Definition at line 36 of file selection.c.