Function report | 
Source Code:fs\direct-io.c | 
Create Date:2022-07-28 20:15:10 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:dio_complete() - called when all DIO BIO I/O has been completed* This drops i_dio_count, lets interested parties know that a DIO operation* has completed, and calculates the resulting return code for the operation
Proto:static ssize_t dio_complete(struct dio *dio, ssize_t ret, unsigned int flags)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct dio * | dio | |
| ssize_t | ret | |
| unsigned int | flags | 
| 239 | transferred = 0 | 
| 248 | If ret == -cb queued, will get completion event Then ret = 0 | 
| 251 | If IO result Then | 
| 252 | transferred = IO result | 
| 255 | If op == REQ_OP_READ && offset + transferred > _size when submitted Then transferred = _size when submitted - offset | 
| 259 | If Value for the false possibility is greater at compile time(ret == - EFAULT) && transferred Then ret = 0 | 
| 263 | If ret == 0 Then ret = from get_user_pages() | 
| 265 | If ret == 0 Then ret = IO error in completion path | 
| 267 | If ret == 0 Then ret = transferred | 
| 270 | If IO completion function Then | 
| 272 | err = IO completion function (kiocb , offset, ret, copy from map_bh.b_private ) | 
| 289 | If flags & Can invalidate pages && ret > 0 && op == REQ_OP_WRITE && nrpages Then | 
| 301 | If flags & This is async IO Then | 
| 311 | ki_complete(kiocb , ret, 0) | 
| 314 | kmem_cache_free(dio_cache, dio) | 
| 315 | Return ret | 
| Name | Describe | 
|---|---|
| dio_aio_complete_work | |
| dio_bio_end_aio | Asynchronous IO callback. | 
| do_blockdev_direct_IO | This is a library function for use by filesystem drivers | 
| 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  |