Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\aio.c Create Date:2022-07-28 20:21:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:aio_poll_complete_work

Proto:static void aio_poll_complete_work(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
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  If Not READ_ONCE(cancelled) Then mask = vfs_poll(file, & pt) & events
1639  spin_lock_irq( & ctx_lock)
1640  If Not mask && Not READ_ONCE(cancelled) Then
1641  add_wait_queue(head, & wait)
1642  spin_unlock_irq( & ctx_lock)
1643  Return
1645  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1646  sult code for this event = mangle_poll(mask)
1647  done = true
1648  spin_unlock_irq( & ctx_lock)
1650  iocb_put(iocb)