Function report | 
Source Code:kernel\fail_function.c | 
Create Date:2022-07-28 11:36:49 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:fei_write
Proto:static ssize_t fei_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | file | |
| const char __user * | buffer | |
| size_t | count | |
| loff_t * | ppos | 
| 248 | If count > KSYM_NAME_LEN Then count = KSYM_NAME_LEN | 
| 250 | buf = Allocation memory | 
| 254 | If copy_from_user(buf, buffer, count) Then | 
| 261 | mutex_lock( & fei_lock) | 
| 264 | If sym[0] == '\0' Then | 
| 270 | If sym[0] == '!' Then | 
| 282 | If Not addr Then | 
| 286 | If Not within_error_injection_list(addr) Then | 
| 290 | If fei_attr_lookup(sym) Then | 
| 294 | attr = fei_attr_new(sym, addr) | 
| 295 | If Not attr Then | 
| 300 | ret = register_kprobe( & kp) | 
| 301 | If Not ret Then fei_debugfs_add_attr(attr) | 
| 303 | If ret < 0 Then fei_attr_remove(attr) | 
| 305 | Else | 
| 309 | out : | 
| 312 | 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  |