|
Linux Kernel
3.7.1
|
#include <linux/console.h>#include <linux/cpumask.h>#include <linux/init.h>#include <linux/kbd_kern.h>#include <linux/kernel.h>#include <linux/kthread.h>#include <linux/list.h>#include <linux/module.h>#include <linux/major.h>#include <linux/sysrq.h>#include <linux/tty.h>#include <linux/tty_flip.h>#include <linux/sched.h>#include <linux/spinlock.h>#include <linux/delay.h>#include <linux/freezer.h>#include <linux/slab.h>#include <linux/serial_core.h>#include <asm/uaccess.h>#include "hvc_console.h"Go to the source code of this file.
Macros | |
| #define | HVC_MAJOR 229 |
| #define | HVC_MINOR 0 |
| #define | HVC_CLOSE_WAIT (HZ/100) /* 1/10 of a second */ |
| #define | N_OUTBUF 16 |
| #define | N_INBUF 16 |
| #define | __ALIGNED__ __attribute__((__aligned__(sizeof(long)))) |
| #define | MIN_TIMEOUT (10) |
| #define | MAX_TIMEOUT (2000) |
| #define | HVC_POLL_READ 0x00000001 |
| #define | HVC_POLL_WRITE 0x00000002 |
Functions | |
| console_initcall (hvc_console_init) | |
| int | hvc_instantiate (uint32_t vtermno, int index, const struct hv_ops *ops) |
| EXPORT_SYMBOL_GPL (hvc_instantiate) | |
| void | hvc_kick (void) |
| EXPORT_SYMBOL_GPL (hvc_kick) | |
| int | hvc_poll (struct hvc_struct *hp) |
| EXPORT_SYMBOL_GPL (hvc_poll) | |
| void | __hvc_resize (struct hvc_struct *hp, struct winsize ws) |
| EXPORT_SYMBOL_GPL (__hvc_resize) | |
| struct hvc_struct * | hvc_alloc (uint32_t vtermno, int data, const struct hv_ops *ops, int outbuf_size) |
| EXPORT_SYMBOL_GPL (hvc_alloc) | |
| int | hvc_remove (struct hvc_struct *hp) |
| EXPORT_SYMBOL_GPL (hvc_remove) | |
| module_exit (hvc_exit) | |
| #define __ALIGNED__ __attribute__((__aligned__(sizeof(long)))) |
Definition at line 65 of file hvc_console.c.
Definition at line 55 of file hvc_console.c.
| #define HVC_MAJOR 229 |
Definition at line 48 of file hvc_console.c.
| #define HVC_MINOR 0 |
Definition at line 49 of file hvc_console.c.
| #define HVC_POLL_READ 0x00000001 |
Definition at line 590 of file hvc_console.c.
| #define HVC_POLL_WRITE 0x00000002 |
Definition at line 591 of file hvc_console.c.
| #define MAX_TIMEOUT (2000) |
Definition at line 587 of file hvc_console.c.
| #define MIN_TIMEOUT (10) |
Definition at line 586 of file hvc_console.c.
| #define N_INBUF 16 |
Definition at line 63 of file hvc_console.c.
| #define N_OUTBUF 16 |
Definition at line 62 of file hvc_console.c.
| 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.
| console_initcall | ( | hvc_console_init | ) |
| EXPORT_SYMBOL_GPL | ( | hvc_instantiate | ) |
| EXPORT_SYMBOL_GPL | ( | hvc_kick | ) |
| EXPORT_SYMBOL_GPL | ( | hvc_poll | ) |
| EXPORT_SYMBOL_GPL | ( | __hvc_resize | ) |
| EXPORT_SYMBOL_GPL | ( | hvc_alloc | ) |
| EXPORT_SYMBOL_GPL | ( | hvc_remove | ) |
|
read |
Definition at line 837 of file hvc_console.c.
Definition at line 268 of file hvc_console.c.
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.
| module_exit | ( | hvc_exit | ) |
1.8.2