Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_get_next_work

Proto:static struct io_wq_work *io_get_next_work(struct io_wqe *wqe, unsigned *hash)__must_hold(wqe->lock)

Type:struct io_wq_work

Parameter:

TypeParameterName
struct io_wqe *wqe
unsigned *hash
385  work = 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.(node, structio_wq_work, list)
388  If Not (flags & IO_WQ_WORK_HASHED) Then
389  wq_node_del( & work_list, node, prev)
390  Return work
394  hash = flags >> IO_WQ_HASH_SHIFT
395  If Not (hash_map & BIT_ULL( * hash)) Then
396  hash_map |= BIT_ULL( * hash)
397  wq_node_del( & work_list, node, prev)
398  Return work
402  Return NULL
Caller
NameDescribe
io_worker_handle_work