• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/kernel/

Lines Matching defs:console

9  * to the console.  Added hook for sending the console messages
10 * elsewhere, in preparation for a serial line console (someday).
23 #include <linux/console.h>
64 * provides serialisation for access to the entire console
69 struct console *console_drivers;
72 * keeping track if we have the console semaphore held. It's
75 * path in the console code where we end up in places I want
76 * locked without the console sempahore held
117 * Array of consoles built from command line options (console=)
132 /* Flag: console code may call schedule() */
192 * 6 -- Disable printk's to console
193 * 7 -- Enable printk's to console
194 * 8 -- Set level of messages printed to console
304 case 6: /* Disable logging to console */
307 case 7: /* Enable logging to console */
310 case 8: /* Set level of messages printed to console */
441 case 6: /* Disable logging to console */
444 case 7: /* Enable logging to console */
447 case 8: /* Set level of messages printed to console */
478 * Call the console drivers on a range of log_buf
482 struct console *con;
524 * Call the console drivers, asking them to write out
600 * Zap console related locks when oopsing. Only zap at most once
642 /* Check if we have any console registered that can be called early in boot. */
646 struct console *con;
663 * call the console drivers. If we fail to get the semaphore we place the output
845 * console drivers with the output which we just produced.
908 __setup("console=", console_setup);
914 * @options: options for this console
916 * The last preferred console added will be used for kernel messages
918 * above to handle user-supplied console arguments; however it can also
920 * commonly to provide a default console (ie from PROM variables) when
951 * suspend_console - suspend the console subsystem
957 printk("Suspending console(s)\n");
970 * acquire_console_sem - lock the console system for exclusive use.
973 * exclusive access to the console system and the console_drivers list.
1020 * release_console_sem - unlock the console system
1022 * Releases the semaphore which the caller holds on the console system
1023 * and the console driver list.
1025 * While the semaphore was held, console output may have been buffered
1081 * If the console code is currently allowed to sleep, and
1102 struct console *c;
1123 * Return the console tty driver structure and its associated index
1127 struct console *c;
1143 * Prevent further output on the passed console device so that (for example)
1144 * serial drivers can disable console output before suspending a port, and can
1147 void console_stop(struct console *console)
1150 console->flags &= ~CON_ENABLED;
1155 void console_start(struct console *console)
1158 console->flags |= CON_ENABLED;
1164 * The console driver calls this routine during kernel initialization
1165 * to register the console printing procedure with printk() and to
1167 * console driver was initialized.
1169 void register_console(struct console *console)
1173 struct console *bootconsole = NULL;
1176 if (console->flags & CON_BOOT)
1186 * See if we want to use this console driver. If we
1187 * didn't select a console we take the first one
1191 if (console->index < 0)
1192 console->index = 0;
1193 if (console->setup == NULL ||
1194 console->setup(console, NULL) == 0) {
1195 console->flags |= CON_ENABLED | CON_CONSDEV;
1201 * See if this console matches one we selected on
1206 if (strcmp(console_cmdline[i].name, console->name) != 0)
1208 if (console->index >= 0 &&
1209 console->index != console_cmdline[i].index)
1211 if (console->index < 0)
1212 console->index = console_cmdline[i].index;
1213 if (console->setup &&
1214 console->setup(console, console_cmdline[i].options) != 0)
1216 console->flags |= CON_ENABLED;
1217 console->index = console_cmdline[i].index;
1219 console->flags |= CON_CONSDEV;
1225 if (!(console->flags & CON_ENABLED))
1229 printk(KERN_INFO "console handover: boot [%s%d] -> real [%s%d]\n",
1231 console->name, console->index);
1233 console->flags &= ~CON_PRINTBUFFER;
1237 * Put this console in the list - keep the
1241 if ((console->flags & CON_CONSDEV) || console_drivers == NULL) {
1242 console->next = console_drivers;
1243 console_drivers = console;
1244 if (console->next)
1245 console->next->flags &= ~CON_CONSDEV;
1247 console->next = console_drivers->next;
1248 console_drivers->next = console;
1250 if (console->flags & CON_PRINTBUFFER) {
1266 int unregister_console(struct console *console)
1268 struct console *a, *b;
1272 if (console_drivers == console) {
1273 console_drivers=console->next;
1278 if (a == console) {
1287 * If this isn't the last console and it has CON_CONSDEV set, we
1288 * need to set it on the next preferred console.
1290 if (console_drivers != NULL && console->flags & CON_CONSDEV)
1299 * tty_write_message - write a message to a certain tty, not just the console.