/* * ARAnyM console driver * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details.
*/
staticint __init nf_debug_setup(char *arg)
{ if (strcmp(arg, "nfcon")) return 0;
stderr_id = nf_get_id("NF_STDERR"); if (stderr_id) { /* * The console will be enabled when debug=nfcon is specified * as a kernel parameter. Since this is a non-standard way * of enabling consoles, it must be explicitly enabled.
*/
nf_console.flags |= CON_ENABLED;
register_console(&nf_console);
}
return 0;
}
early_param("debug", nf_debug_setup);
#endif/* !MODULE */
staticint __init nfcon_init(void)
{ struct tty_driver *driver; int res;
stderr_id = nf_get_id("NF_STDERR"); if (!stderr_id) return -ENODEV;
driver = tty_alloc_driver(1, TTY_DRIVER_REAL_RAW); if (IS_ERR(driver)) return PTR_ERR(driver);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.