函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aio_poll_complete_work

函数原型:static void aio_poll_complete_work(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
1623  req等于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.(work, structpoll_iocb, work)
1624  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.(req, structaio_kiocb, poll)
1625  struct poll_table_struct pt = {_key = events}
1626  ctx等于ki_ctx
1627  mask等于0
1629  如果非READ_ONCE(cancelled)则mask等于vfs_poll(file, & pt)按位与events
1639  spin_lock_irq( & ctx_lock)
1640  如果非mask且非READ_ONCE(cancelled)则
1641  add_wait_queue(head, & wait)
1642  spin_unlock_irq( & ctx_lock)
1643  返回
1645  删除链表项并重新初始化
1646  IO请求的结果等于mangle_poll(mask)
1647  done = true
1648  spin_unlock_irq( & ctx_lock)
1650  iocb_put(iocb)