函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static inline struct aio_kiocb *aio_get_req(struct kioctx *ctx)

返回类型:struct aio_kiocb

参数:

类型参数名称
struct kioctx *ctx
1030  req等于分配高速缓存区
1031  如果此条件成立可能性小(为编译器优化)(!req)则返回:NULL
1034  如果此条件成立可能性小(为编译器优化)(!get_reqs_available(ctx))则
1035  kmem_cache_free(----end sysctl variables---, req)
1036  返回:NULL
1039  percpu计数引用增
1040  ki_ctx等于ctx
1041  初始化链表头
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  返回:req
调用者
名称描述
io_submit_one