Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
selection.c File Reference
#include <linux/module.h>
#include <linux/tty.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <asm/uaccess.h>
#include <linux/kbd_kern.h>
#include <linux/vt_kern.h>
#include <linux/consolemap.h>
#include <linux/selection.h>
#include <linux/tiocl.h>
#include <linux/console.h>

Go to the source code of this file.

Macros

#define isspace(c)   ((c) == ' ')
 

Functions

void poke_blanked_console (void)
 
void clear_selection (void)
 
int sel_loadlut (char __user *p)
 
int set_selection (const struct tiocl_selection __user *sel, struct tty_struct *tty)
 
int paste_selection (struct tty_struct *tty)
 

Variables

struct vc_datasel_cons
 

Macro Definition Documentation

#define isspace (   c)    ((c) == ' ')

Definition at line 29 of file selection.c.

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.

int paste_selection ( struct tty_struct tty)

Definition at line 336 of file selection.c.

void poke_blanked_console ( void  )

Definition at line 3835 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.

Variable Documentation

struct vc_data* sel_cons

Definition at line 36 of file selection.c.