3 .\" copyright (C) 1997 Stephen Williams <steve@icarus.com>
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.
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
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
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .TH register_console 9 "$Date:$" "Linux DDI" "Kernel Functions"
27 register_console \- take on kernel console duties
29 .BI "extern void register_console(void(*" proc ")(const char*))"
31 This function registers with the kernel a function to display all the
32 kernel messages printed by the
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.
47 .I "/usr/src/linux/kernel/printk.c"
49 Stephen Williams <steve@icarus.com>
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.