OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / linux-man9 / original / man9 / register_console.9
1 .\" -*- nroff -*-
2 .\"
3 .\" copyright (C) 1997 Stephen Williams <steve@icarus.com>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one
13 .\" 
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\" 
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .TH register_console 9 "$Date:$" "Linux DDI" "Kernel Functions"
26 .SH NAME
27 register_console \- take on kernel console duties
28 .SH SYNOPSIS
29 .BI "extern void register_console(void(*" proc ")(const char*))"
30 .SH DESCRIPTION
31 This function registers with the kernel a function to display all the
32 kernel messages printed by the
33 .BR printk "(9)"
34 function.
35 .PP
36 This function is normally called once at boot time by the device
37 driver for the console device, whatever that turns out to be for the
38 machine. The console procedure is only called to print messages that
39 are to be printed, the filtering for log level is done already.
40 .SH "RETURN VALUE"
41 None.
42 .SH AVAILABILITY
43 Linux 1.0+
44 .SH "SEE ALSO"
45 .BR printk "(9)"
46 .PP
47 .I "/usr/src/linux/kernel/printk.c"
48 .SH AUTHOR
49 Stephen Williams <steve@icarus.com>
50 .SH BUGS
51 Only one console can exist at a time, and there is no way to know if
52 any other device has registered as a console.