函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:COMPAT_SYSCALL_DEFINE2

函数原型:COMPAT_SYSCALL_DEFINE2(io_setup, unsigned, nr_events, unsigned int __user *, ctx32p)

返回类型:

参数:

1345  struct kioctx * ioctx = NULL
1349  ret等于Careful: we have to cast the result to the type of the pointer* for sign reasons(ctx, ctx32p)
1350  如果此条件成立可能性小(为编译器优化)(ret)则转到:out
1353  ret等于负EINVAL
1354  如果此条件成立可能性小(为编译器优化)(ctx || nr_events == 0)则
1355  pr_debug("EINVAL: ctx %lu nr_events %u\n", ctx, nr_events)
1357  转到:out
1360  ioctx等于x_alloc* Allocates and initializes an ioctx. Returns an ERR_PTR if it failed.
1361  ret等于错误
1362  如果非是错误
1364  ret等于put_user - Write a simple value into user space((u32)user_id, ctx32p)
1365  如果retkill_ioctx* Cancels all outstanding aio requests on an aio context. Used* when the processes owning a context have all exited to encourage* the rapid destruction of the kioctx.
1367  percpu计数引用减
1370  out :
1371  返回:ret