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:aio_complete* Called when the io request on the given iocb is complete.
Proto:static void aio_complete(struct aio_kiocb *iocb)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct aio_kiocb * | iocb |
1101 | spin_lock_irqsave( & completion_lock, flags) |
1104 | pos = tail + AIO_EVENTS_OFFSET |
1106 | If ++tail >= Size of ringbuffer, in units of struct io_event Then tail = 0 |
1109 | ev_page = kmap_atomic(ring_pages[pos / AIO_EVENTS_PER_PAGE]) |
1110 | event = ev_page + pos % AIO_EVENTS_PER_PAGE |
1114 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(ev_page) |
1117 | pr_debug("%p[%u]: %p: %p %Lx %Lx %Lx\n", ctx, tail, iocb, (void__user * )(unsignedlong)what iocb this event came from , he data field from the iocb , sult code for this event , secondary result ) |
1124 | smp_wmb() |
1128 | ring = kmap_atomic(ring_pages[0]) |
1131 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(ring) |
1132 | flush_dcache_page(ring_pages[0]) |
1134 | completed_events++ |
1137 | spin_unlock_irqrestore( & completion_lock, flags) |
1146 | If If the aio_resfd field of the userspace iocb is not zero,* this is the underlying eventfd context to deliver events to. Then ventfd_signal - Adds @n to the eventfd counter |
1155 | smp_mb() |
Name | Describe |
---|---|
iocb_put |
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 |