Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aio_get_req* Allocate a slot for an aio request.* Returns NULL if no requests are free.* The refcount is initialized to 2 - one for the async op completion,* one for the synchronous code that does this.

Proto:static inline struct aio_kiocb *aio_get_req(struct kioctx *ctx)

Type:struct aio_kiocb

Parameter:

TypeParameterName
struct kioctx *ctx
1030  req = kmem_cache_alloc(----end sysctl variables---, GFP_KERNEL)
1031  If Value for the false possibility is greater at compile time(!req) Then Return NULL
1034  If Value for the false possibility is greater at compile time(!get_reqs_available(ctx)) Then
1035  kmem_cache_free(----end sysctl variables---, req)
1036  Return NULL
1039  percpu_ref_get - increment a percpu refcount*@ref: percpu_ref to get* Analagous to atomic_long_inc().* This function is safe to call as long as @ref is between init and exit.
1040  ki_ctx = ctx
1041  Initialization list head
1042  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
1043  If the aio_resfd field of the userspace iocb is not zero,* this is the underlying eventfd context to deliver events to. = NULL
1044  Return req
Caller
NameDescribe
io_submit_one