函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kcmp.c Create Date:2022-07-27 11:36:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kcmp_epoll_target

函数原型:static int kcmp_epoll_target(struct task_struct *task1, struct task_struct *task2, unsigned long idx1, struct kcmp_epoll_slot __user *uslot)

返回类型:int

参数:

类型参数名称
struct task_struct *task1
struct task_struct *task2
unsigned longidx1
struct kcmp_epoll_slot __user *uslot
112  如果copy_from_user( & slot, uslot, slot的长度)则返回:负EFAULT
115  filp等于The caller must have pinned the task
116  如果非filp则返回:负EBADF
119  files等于get_files_struct(task2)
120  如果非files则返回:负EBADF
123  加自旋锁
124  filp_epoll等于fcheck_files(files, poll file descriptor )
125  如果filp_epollget_file(filp_epoll)
127  否则filp_tgt等于错误号
129  自旋锁解锁
130  put_files_struct(files)
132  如果filp_epoll
133  filp_tgt等于get_epoll_tfile_raw_ptr(filp_epoll, arget file number , arget offset within same numbered sequence )
134  fput(filp_epoll)
137  如果是错误则返回:错误
140  返回:0 - equal, i.e. v1 = v2* 1 - less than, i.e. v1 < v2* 2 - greater than, i.e. v1 > v2* 3 - not equal but ordering unavailable (reserved for future)
调用者
名称描述
SYSCALL_DEFINE5