函数逻辑报告 |
Source Code:fs\aio.c |
Create Date:2022-07-29 10:53:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:aio_complete* Called when the io request on the given iocb is complete.
函数原型:static void aio_complete(struct aio_kiocb *iocb)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aio_kiocb * | iocb |
1101 | spin_lock_irqsave( & completion_lock, flags) |
1104 | pos等于tail加AIO_EVENTS_OFFSET |
1106 | 如果tail先自加大于等于 Size of ringbuffer, in units of struct io_event 则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)异步请求指针, 可携带的私有数据, IO请求的结果, 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 the aio_resfd field of the userspace iocb is not zero,* this is the underlying eventfd context to deliver events to.则ventfd_signal - Adds @n to the eventfd counter |
1155 | smp_mb() |
名称 | 描述 |
---|---|
iocb_put |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |