函数逻辑报告

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

函数名称:sys_io_setup:* Create an aio_context capable of receiving at least nr_events

函数原型:SYSCALL_DEFINE2(io_setup, unsigned, nr_events, aio_context_t __user *, ctxp)

返回类型:

参数:

1314  struct kioctx * ioctx = NULL
1318  ret等于Careful: we have to cast the result to the type of the pointer* for sign reasons(ctx, ctxp)
1319  如果此条件成立可能性小(为编译器优化)(ret)则转到:out
1322  ret等于负EINVAL
1323  如果此条件成立可能性小(为编译器优化)(ctx || nr_events == 0)则
1324  pr_debug("EINVAL: ctx %lu nr_events %u\n", ctx, nr_events)
1326  转到:out
1329  ioctx等于x_alloc* Allocates and initializes an ioctx. Returns an ERR_PTR if it failed.
1330  ret等于错误
1331  如果非是错误
1332  ret等于put_user - Write a simple value into user space(user_id, ctxp)
1333  如果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.
1335  percpu计数引用减
1338  out :
1339  返回:ret