| Function report | 
| Source Code: kernel\kcov.c | Create Date:2022-07-28 11:34:05 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:kcov_ioctl
Proto:static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | filep | |
| unsigned int | cmd | |
| unsigned long | arg | 
| 677 | struct kcov_remote_arg * remote_arg = NULL | 
| 681 | If cmd == KCOV_REMOTE_ENABLE Then | 
| 682 | If Get a simple variable from user space(remote_num_handles, (unsigned__user * )(arg + offsetof(structkcov_remote_arg, num_handles))) Then Return -EFAULT | 
| 685 | If remote_num_handles > KCOV_REMOTE_MAX_HANDLES Then Return -EINVAL | 
| 689 | remote_arg = memdup_user((void__user * )arg, remote_arg_size) | 
| 690 | If IS_ERR(remote_arg) Then Return PTR_ERR(remote_arg) | 
| 692 | If Size of handles array != remote_num_handles Then | 
| 693 | kfree(remote_arg) | 
| 694 | Return -EINVAL | 
| 696 | arg = remote_arg | 
| 701 | res = kcov_ioctl_locked(kcov, cmd, arg) | 
| 704 | kfree(remote_arg) | 
| 706 | Return res | 
| 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 |