函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\aio.c Create Date:2022-07-29 10:53:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:aio_complete_rw

函数原型:static void aio_complete_rw(struct kiocb *kiocb, long res, long res2)

返回类型:void

参数:

类型参数名称
struct kiocb *kiocb
longres
longres2
1423  iocb等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(kiocb, structaio_kiocb, rw)
1425  如果非链表为空且不修改aio_remove_iocb(iocb)
1428  如果ki_flags按位与IOCB_WRITE
1429  inode等于file_inode(文件指针)
1435  如果S_ISREG(i_mode)则__sb_writers_acquired(i_sb, SB_FREEZE_WRITE)
1437  file_end_write(文件指针)
1440  IO请求的结果等于res
1441  secondary result 等于res2
1442  iocb_put(iocb)