Function report |
Source Code:kernel\trace\trace_events_inject.c |
Create Date:2022-07-28 12:27:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:event_inject_write
Proto:static ssize_t event_inject_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | filp | |
| const char __user * | ubuf | |
| size_t | cnt | |
| loff_t * | ppos |
| 285 | void * entry = NULL |
| 291 | buf = memdup_user_nul(ubuf, cnt) |
| 296 | mutex_lock( & event_mutex) |
| 297 | file = event_file_data(filp) |
| 298 | If file Then |
| 299 | call = event_call |
| 303 | Else err = trace_inject_entry(file, entry, size) |
| 315 | Return cnt |
| 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 |