函数逻辑报告 |
Source Code:kernel\kcmp.c |
Create Date:2022-07-27 11:36:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:SYSCALL_DEFINE5
函数原型:SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, unsigned long, idx1, unsigned long, idx2)
返回类型:
参数:无
163 | task1等于find_task_by_vpid(pid1) |
164 | task2等于find_task_by_vpid(pid2) |
165 | 如果非task1或非task2则转到:err_no_task |
168 | get_task_struct(task1) |
169 | get_task_struct(task2) |
176 | ret等于kcmp_lock( & cred_guard_mutex, & cred_guard_mutex) |
183 | 转到:err_unlock |
200 | ret等于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) |
201 | 退出 |
202 | 当:type恒等于KCMP_FILES |
203 | ret等于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) |
204 | 退出 |
206 | ret等于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) |
207 | 退出 |
208 | 当:type恒等于KCMP_SIGHAND |
209 | ret等于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) |
210 | 退出 |
212 | ret等于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) |
213 | 退出 |
214 | 当:type恒等于KCMP_SYSVSEM |
216 | ret等于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) |
222 | 退出 |
223 | 当:type恒等于KCMP_EPOLL_TFD |
226 | 默认 |
231 | err_unlock : |
232 | kcmp_unlock( & cred_guard_mutex, & cred_guard_mutex) |
234 | err : |
235 | put_task_struct(task1) |
236 | put_task_struct(task2) |
238 | 返回:ret |
240 | err_no_task : |
242 | 返回:负ESRCH |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |