| Function report | 
| Source Code: kernel\printk\printk.c | Create Date:2022-07-28 10:05:54 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:devkmsg_write
Proto:static ssize_t devkmsg_write(struct kiocb *iocb, struct iov_iter *from)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kiocb * | iocb | |
| struct iov_iter * | from | 
| 809 | facility = 1 | 
| 812 | len = iov_iter_count(from) | 
| 815 | If Not user || len > LOG_LINE_MAX Then Return -EINVAL | 
| 819 | If devkmsg_log & DEVKMSG_LOG_MASK_OFF Then Return len | 
| 823 | If Not (devkmsg_log & DEVKMSG_LOG_MASK_ON) Then | 
| 828 | buf = Allocation memory | 
| 833 | If Not copy_from_iter_full(buf, len, from) Then | 
| 835 | Return -EFAULT | 
| 848 | If line[0] == '<' Then | 
| 849 | char * endp = NULL | 
| 863 | devkmsg_emit(facility, level, "%s", line) | 
| 865 | Return ret | 
| 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 |