Function report |
Source Code:kernel\locking\lock_events.c |
Create Date:2022-07-28 09:55:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Function to handle write request* When idx = reset_cnts, reset all the counts.
Proto:static ssize_t lockevent_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
const char __user * | user_buf | |
size_t | count | |
loff_t * | ppos |
96 | If s or device private pointer != LOCKEVENT_reset_cnts Then Return count |
101 | ptr = per_cpu_ptr(Per-cpu counts, cpu) |
103 | When i < # of write lock handoffs cycle WRITE_ONCE(ptr[i], 0) |
106 | Return count |
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 |