最終更新:2016-09-15 (木) 17:56:19 (2752d)
linux/console.h?register_console
Top / register_console
printk関数により出力されたすべてのカーネル・ メッセージを表示するために、カーネルに関数を登録する。
/* * The console driver calls this routine during kernel initialization * to register the console printing procedure with printk() and to * print any messages that were printed by the kernel before the * console driver was initialized. * * This can happen pretty early during the boot process (because of * early_printk) - sometimes before setup_arch() completes - be careful * of what kernel features are used - they may not be initialised yet. * * There are two types of consoles - bootconsoles (early_printk) and * "real" consoles (everything which is not a bootconsole) which are * handled differently. * - Any number of bootconsoles can be registered at any time. * - As soon as a "real" console is registered, all bootconsoles * will be unregistered automatically. * - Once a "real" console is registered, any attempt to register a * bootconsoles will be rejected
メモ
- この関数は、通常はブート時に1度だけ、コンソールデバイス用の デバイスドライバからコールされる
実装
関連
- printk
- early_printk?
- setup_arch