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_wake

Proto:static int aio_poll_wake(struct wait_queue_entry *wait, unsigned mode, int sync, void *key)

Type:int

Parameter:

TypeParameterName
struct wait_queue_entry *wait
unsignedmode
intsync
void *key
1673  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.(wait, structpoll_iocb, wait)
1674  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)
1675  mask = key_to_poll(key)
1679  If mask && Not (mask & events) Then Return 0
1682  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1684  If mask && spin_trylock_irqsave( & ctx_lock, flags) Then
1685  ctx = ki_ctx
1693  deletes entry from list
1694  sult code for this event = mangle_poll(mask)
1695  done = true
1697  iocb = NULL
1701  spin_unlock_irqrestore( & ctx_lock, flags)
1702  If iocb Then iocb_put(iocb)
1704  Else
1705  schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise
1707  Return 1