Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\aio.c Create Date:2022-07-28 20:21:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:SYSCALL_DEFINE1(io_destroy, aio_context_t, ctx)

Type:

Parameter:Nothing

1383  ioctx = lookup_ioctx(ctx)
1384  If Value is more likely to compile time(NULL != ioctx) Then
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_ref_put - decrement a percpu refcount*@ref: percpu_ref to put* Decrement the refcount, and if 0, call the release function (which was passed* to percpu_ref_init())* This function is safe to call as long as @ref is between init and exit.
1402  If Not ret Then wait_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  Return ret
1407  pr_debug("EINVAL: invalid context id\n")
1408  Return -EINVAL