Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hvc_console.h File Reference
#include <linux/kref.h>
#include <linux/tty.h>
#include <linux/spinlock.h>

Go to the source code of this file.

Data Structures

struct  hvc_struct
 
struct  hv_ops
 

Macros

#define MAX_NR_HVC_CONSOLES   16
 
#define HVC_ALLOC_TTY_ADAPTERS   8
 

Functions

int hvc_instantiate (uint32_t vtermno, int index, const struct hv_ops *ops)
 
struct hvc_structhvc_alloc (uint32_t vtermno, int data, const struct hv_ops *ops, int outbuf_size)
 
int hvc_remove (struct hvc_struct *hp)
 
int hvc_poll (struct hvc_struct *hp)
 
void hvc_kick (void)
 
void __hvc_resize (struct hvc_struct *hp, struct winsize ws)
 
int notifier_add_irq (struct hvc_struct *hp, int data)
 
void notifier_del_irq (struct hvc_struct *hp, int data)
 
void notifier_hangup_irq (struct hvc_struct *hp, int data)
 

Macro Definition Documentation

#define HVC_ALLOC_TTY_ADAPTERS   8

Definition at line 46 of file hvc_console.h.

#define MAX_NR_HVC_CONSOLES   16

Definition at line 38 of file hvc_console.h.

Function Documentation

void __hvc_resize ( struct hvc_struct hp,
struct winsize  ws 
)

__hvc_resize() - Update terminal window size information. : HVC console pointer : Terminal window size structure

Stores the specified window size information in the hvc structure of . The function schedule the tty resize update.

Locking: Locking free; the function MUST be called holding hp->lock

Definition at line 712 of file hvc_console.c.

struct hvc_struct* hvc_alloc ( uint32_t  vtermno,
int  data,
const struct hv_ops ops,
int  outbuf_size 
)
read

Definition at line 837 of file hvc_console.c.

int hvc_instantiate ( uint32_t  vtermno,
int  index,
const struct hv_ops ops 
)

Definition at line 268 of file hvc_console.c.

void hvc_kick ( void  )

Definition at line 300 of file hvc_console.c.

int hvc_poll ( struct hvc_struct hp)

Definition at line 593 of file hvc_console.c.

int hvc_remove ( struct hvc_struct hp)

Definition at line 896 of file hvc_console.c.

int notifier_add_irq ( struct hvc_struct hp,
int  data 
)

Definition at line 23 of file hvc_irq.c.

void notifier_del_irq ( struct hvc_struct hp,
int  data 
)

Definition at line 38 of file hvc_irq.c.

void notifier_hangup_irq ( struct hvc_struct hp,
int  data 
)

Definition at line 46 of file hvc_irq.c.