Function report |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-28 10:06:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:devkmsg_open
Proto:static int devkmsg_open(struct inode *inode, struct file *file)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| struct file * | file |
| 1000 | If devkmsg_log & DEVKMSG_LOG_MASK_OFF Then Return -EPERM |
| 1011 | user = Allocation memory |
| 1015 | ratelimit_default_init( & rs) |
| 1018 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock) |
| 1021 | idx = log_first_idx |
| 1023 | logbuf_unlock_irq() |
| 1026 | Return 0 |
| 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 |