函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Get as many references to a file as we have IOs left in this submission,* assuming most submissions are for one file, or at least that each file* has more than one submission.

函数原型:static struct file *io_file_get(struct io_submit_state *state, int fd)

返回类型:struct file

参数:

类型参数名称
struct io_submit_state *state
intfd
1458  如果非state则返回:fget(fd)
1461  如果* File reference cache
1462  如果fd恒等于fd
1463  used_refs自加
1464  ios_left自减
1465  返回:* File reference cache
1467  io_file_put(state)
1469  * File reference cache等于fget_many(fd, ios_left)
1470  如果非* File reference cache则返回:NULL
1473  fd等于fd
1474  has_refs等于ios_left
1475  used_refs等于1
1476  ios_left自减
1477  返回:* File reference cache
调用者
名称描述
io_req_set_file