Function report |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-28 10:06:59 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sole_unlock - unlock the console system* Releases the console_lock which the caller holds on the console system* and the console driver list.* While the console_lock was held, console output may have been buffered* by printk()
Proto:void console_unlock(void)
Type:void
Parameter:Nothing
| 2375 | up_console_sem() |
| 2376 | Return |
| 2394 | again : |
| 2404 | up_console_sem() |
| 2405 | Return |
| 2408 | cycle |
| 2410 | ext_len = 0 |
| 2416 | len = sprintf(text, "** %llu printk messages dropped **\n", dex and sequence number of the first record stored in the buffer - he next printk record to write to the console ) |
| 2421 | he next printk record to write to the console = dex and sequence number of the first record stored in the buffer |
| 2422 | console_idx = log_first_idx |
| 2423 | Else |
| 2424 | len = 0 |
| 2426 | skip : |
| 2427 | If he next printk record to write to the console == dex and sequence number of the next record to store in the buffer Then Break |
| 2431 | If suppress_message_printing( syslog level ) Then |
| 2439 | Go to skip |
| 2448 | len += msg_print_text(msg, console_msg_format & MSG_FORMAT_SYSLOG, printk_time, text + len, size of text - len) |
| 2451 | If Number of registered extended console drivers. Then |
| 2452 | ext_len = msg_print_ext_header(ext_text, size of ext_text , msg, he next printk record to write to the console ) |
| 2472 | stop_critical_timings() |
| 2474 | start_critical_timings() |
| 2478 | Return |
| 2483 | If do_cond_resched Then cond_resched() |
| 2491 | up_console_sem() |
| 2500 | retry = he next printk record to write to the console != dex and sequence number of the next record to store in the buffer |
| Name | Describe |
|---|---|
| vprintk_emit | |
| resume_console | |
| console_cpu_notify | sole_cpu_notify - print deferred console messages after CPU hotplug*@cpu: unused* If printk() is called from a CPU that is not online yet, the messages* will be printed on the console only if there are CON_ANYTIME consoles |
| console_unblank | |
| console_flush_on_panic | sole_flush_on_panic - flush console content on panic*@mode: flush all messages in buffer or just the pending ones* Immediately output all pending messages no matter what. |
| console_device | Return the console tty driver structure and its associated index |
| console_stop | Prevent further output on the passed console device so that (for example)* serial drivers can disable console output before suspending a port, and can* re-enable output afterwards. |
| console_start | |
| register_console | 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 |
| unregister_console | |
| wake_up_klogd_work_func |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |