Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vt_ioctl.c File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/tty.h>
#include <linux/timer.h>
#include <linux/kernel.h>
#include <linux/compat.h>
#include <linux/module.h>
#include <linux/kd.h>
#include <linux/vt.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/major.h>
#include <linux/fs.h>
#include <linux/console.h>
#include <linux/consolemap.h>
#include <linux/signal.h>
#include <linux/timex.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <linux/kbd_kern.h>
#include <linux/vt_kern.h>
#include <linux/kbd_diacr.h>
#include <linux/selection.h>

Go to the source code of this file.

Data Structures

struct  vt_event_wait
 

Macros

#define VT_IS_IN_USE(i)   (console_driver->ttys[i] && console_driver->ttys[i]->count)
 
#define VT_BUSY(i)   (VT_IS_IN_USE(i) || i == fg_console || vc_cons[i].d == sel_cons)
 
#define GPFIRST   0x3b4
 
#define GPLAST   0x3df
 
#define GPNUM   (GPLAST - GPFIRST + 1)
 

Functions

void vt_event_post (unsigned int event, unsigned int old, unsigned int new)
 
int vt_waitactive (int n)
 
int vt_ioctl (struct tty_struct *tty, unsigned int cmd, unsigned long arg)
 
void reset_vc (struct vc_data *vc)
 
void vc_SAK (struct work_struct *work)
 
void change_console (struct vc_data *new_vc)
 
int vt_move_to_console (unsigned int vt, int alloc)
 
void pm_set_vt_switch (int do_switch)
 
 EXPORT_SYMBOL (pm_set_vt_switch)
 

Variables

char vt_dont_switch
 
struct tty_driverconsole_driver
 

Macro Definition Documentation

#define GPFIRST   0x3b4

Definition at line 215 of file vt_ioctl.c.

#define GPLAST   0x3df

Definition at line 216 of file vt_ioctl.c.

#define GPNUM   (GPLAST - GPFIRST + 1)

Definition at line 217 of file vt_ioctl.c.

#define VT_BUSY (   i)    (VT_IS_IN_USE(i) || i == fg_console || vc_cons[i].d == sel_cons)

Definition at line 42 of file vt_ioctl.c.

#define VT_IS_IN_USE (   i)    (console_driver->ttys[i] && console_driver->ttys[i]->count)

Definition at line 41 of file vt_ioctl.c.

Function Documentation

void change_console ( struct vc_data new_vc)

Definition at line 1332 of file vt_ioctl.c.

EXPORT_SYMBOL ( pm_set_vt_switch  )
void pm_set_vt_switch ( int  do_switch)

Definition at line 1446 of file vt_ioctl.c.

void reset_vc ( struct vc_data vc)

Definition at line 1020 of file vt_ioctl.c.

void vc_SAK ( struct work_struct work)

Definition at line 1036 of file vt_ioctl.c.

void vt_event_post ( unsigned int  event,
unsigned int  old,
unsigned int  new 
)

vt_event_post : the event that occurred : old console : new console

Post an VT event to interested VT handlers

Definition at line 86 of file vt_ioctl.c.

int vt_ioctl ( struct tty_struct tty,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 291 of file vt_ioctl.c.

int vt_move_to_console ( unsigned int  vt,
int  alloc 
)

Definition at line 1403 of file vt_ioctl.c.

int vt_waitactive ( int  n)

vt_waitactive - active console wait : event code
: new console

Helper for event waits. Used to implement the legacy event waiting ioctls in terms of events

Definition at line 193 of file vt_ioctl.c.

Variable Documentation

struct tty_driver* console_driver

Definition at line 2388 of file vt.c.

char vt_dont_switch

Definition at line 38 of file vt_ioctl.c.