summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-14 05:45:07 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-14 05:45:07 -0700
commit5770ced918468d627595003a9a3bb0421cb0cfbc (patch)
tree4d12f4ba4c61ef1bb7b06ad40313456d519f6552 /include/linux
parentf887808c36bffedcbccd49a199e2c477a0d81005 (diff)
[PATCH] Module ref counting for vt console drivers
From: Herbert Xu <herbert@gondor.apana.org.au> The following patch adds basic module reference counting to vt console drivers. Currently modules like fbcon are not counted at all.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/console.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/console.h b/include/linux/console.h
index 2092454b2d8f..c8a8fe4f27b3 100644
--- a/include/linux/console.h
+++ b/include/linux/console.h
@@ -19,6 +19,7 @@
struct vc_data;
struct console_font_op;
+struct module;
/*
* this is what the terminal answers to a ESC-Z or csi0c query.
@@ -27,6 +28,7 @@ struct console_font_op;
#define VT102ID "\033[?6c"
struct consw {
+ struct module *owner;
const char *(*con_startup)(void);
void (*con_init)(struct vc_data *, int);
void (*con_deinit)(struct vc_data *);
@@ -58,7 +60,7 @@ extern const struct consw vga_con; /* VGA text console */
extern const struct consw newport_con; /* SGI Newport console */
extern const struct consw prom_con; /* SPARC PROM console */
-void take_over_console(const struct consw *sw, int first, int last, int deflt);
+int take_over_console(const struct consw *sw, int first, int last, int deflt);
void give_up_console(const struct consw *sw);
/* scroll */