Function report |
Source Code:fs\aio.c |
Create Date:2022-07-28 20:21:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int kill_ioctx(struct mm_struct *mm, struct kioctx *ctx, struct ctx_rq_wait *wait)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mm_struct * | mm | |
| struct kioctx * | ctx | |
| struct ctx_rq_wait * | wait |
| 821 | spin_lock( & ioctx_lock) |
| 822 | If atomic_xchg( & dead, 1) Then |
| 823 | spin_unlock( & ioctx_lock) |
| 824 | Return -EINVAL |
| 830 | spin_unlock( & ioctx_lock) |
| 833 | wake_up_all( & wait) |
| 849 | Return 0 |
| Name | Describe |
|---|---|
| exit_aio | xit_aio: called when the last user of mm goes away. At this point, there is* no way for any new requests to be submited or any of the io_* syscalls to be* called on the context.* There may be outstanding kiocbs, but free_ioctx() will explicitly wait on |
| SYSCALL_DEFINE2 | sys_io_setup:* Create an aio_context capable of receiving at least nr_events |
| COMPAT_SYSCALL_DEFINE2 | |
| SYSCALL_DEFINE1 | 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |