Function report |
Source Code:fs\aio.c |
Create Date:2022-07-28 20:21:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aio_poll
Proto:static int aio_poll(struct aio_kiocb *aiocb, const struct iocb *iocb)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct aio_kiocb * | aiocb | |
const struct iocb * | iocb |
1738 | bool cancel = false |
1745 | If aio_offset || aio_nbytes || RWF_* flags Then Return -EINVAL |
1748 | INIT_WORK( & work, aio_poll_complete_work) |
1749 | events = demangle_poll(aio_buf) | EPOLLERR | EPOLLHUP |
1751 | head = NULL |
1752 | done = false |
1753 | cancelled = false |
1755 | _qproc = aio_poll_queue_proc |
1762 | init_waitqueue_func_entry( & wait, aio_poll_wake) |
1765 | spin_lock_irq( & ctx_lock) |
1766 | If Value is more likely to compile time(head) Then |
1776 | Else if cancel Then |
1777 | WRITE_ONCE(cancelled, true) |
1778 | Else if Not done Then |
1782 | spin_unlock( & lock) |
1784 | If mask Then |
1785 | sult code for this event = mangle_poll(mask) |
1786 | error = 0 |
1788 | spin_unlock_irq( & ctx_lock) |
1791 | Return error |
Name | Describe |
---|---|
__io_submit_one |
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 |