| Function report | 
| Source Code: kernel\printk\printk.c | Create Date:2022-07-28 10:06:19 | 
| 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
Proto:static int syslog_print(char __user *buf, int size)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| char __user * | buf | |
| int | size | 
| 1354 | len = 0 | 
| 1356 | text = Allocation memory | 
| 1367 | he next printk record to read by syslog(READ) or /proc/kmsg = dex and sequence number of the first record stored in the buffer | 
| 1368 | syslog_idx = log_first_idx | 
| 1369 | syslog_partial = 0 | 
| 1372 | logbuf_unlock_irq() | 
| 1373 | Break | 
| 1380 | If Not syslog_partial Then syslog_time = printk_time | 
| 1383 | skip = syslog_partial | 
| 1385 | n = msg_print_text(msg, true, syslog_time, text, LOG_LINE_MAX + PREFIX_MAX) | 
| 1387 | If n - syslog_partial <= size Then | 
| 1391 | n -= syslog_partial | 
| 1392 | syslog_partial = 0 | 
| 1393 | Else if Not len Then | 
| 1396 | syslog_partial += n | 
| 1397 | Else n = 0 | 
| 1399 | logbuf_unlock_irq() | 
| 1401 | If Not n Then Break | 
| 1404 | If copy_to_user(buf, text + skip, n) Then | 
| 1416 | 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 |