函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sys_io_destroy:* Destroy the aio_context specified. May cancel any outstanding * AIOs and block on completion. Will fail with -ENOSYS if not* implemented. May fail with -EINVAL if the context pointed to* is invalid.

函数原型:SYSCALL_DEFINE1(io_destroy, aio_context_t, ctx)

返回类型:

参数:

1383  ioctx等于lookup_ioctx(ctx)
1384  如果此条件成立可能性大(为编译器优化)(NULL != ioctx)则
1388  init_completion( & comp)
1389  atomic_set( & count, 1)
1395  ret等于kill_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.
1396  percpu计数引用减
1402  如果非retwait_for_completion: - waits for completion of a task*@x: holds the state of this particular completion* This waits to be signaled for completion of a specific task. It is NOT* interruptible and there is no timeout.* See also similar routines (i
1405  返回:ret
1407  pr_debug("EINVAL: invalid context id\n")
1408  返回:负EINVAL