Function report |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-28 10:06:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:syslog_print_all
Proto:static int syslog_print_all(char __user *buf, int size, bool clear)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
char __user * | buf | |
int | size | |
bool | clear |
1422 | len = 0 |
1428 | text = Allocation memory |
1432 | time = printk_time |
1451 | When len > size && seq < dex and sequence number of the next record to store in the buffer cycle |
1462 | len = 0 |
1465 | textlen = msg_print_text(msg, true, time, text, LOG_LINE_MAX + PREFIX_MAX) |
1469 | seq++ |
1471 | logbuf_unlock_irq() |
1485 | If clear Then |
1486 | he next printk record to read after the last 'clear' command = dex and sequence number of the next record to store in the buffer |
1487 | clear_idx = log_next_idx |
1489 | logbuf_unlock_irq() |
1492 | Return len |
Name | Describe |
---|---|
do_syslog |
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 |