Function report |
Source Code:kernel\trace\trace_events.c |
Create Date:2022-07-28 12:19:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:event_enable_read
Proto:static ssize_t event_enable_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
char __user * | ubuf | |
size_t | cnt | |
loff_t * | ppos |
1058 | buf[4] = "0" |
1060 | mutex_lock( & event_mutex) |
1061 | file = event_file_data(filp) |
1069 | If flags & EVENT_FILE_FL_ENABLED && Not (flags & EVENT_FILE_FL_SOFT_DISABLED) Then strcpy(buf, "1") |
1073 | If flags & EVENT_FILE_FL_SOFT_DISABLED || flags & EVENT_FILE_FL_SOFT_MODE Then strcat(buf, "*") |
1079 | Return simple_read_from_buffer(ubuf, cnt, ppos, buf, strlen - Find the length of a string*@s: The string to be sized) |
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 |