Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static struct file *io_file_get(struct io_submit_state *state, int fd)

Type:struct file

Parameter:

TypeParameterName
struct io_submit_state *state
intfd
1458  If Not state Then Return fget(fd)
1461  If * File reference cache Then
1462  If fd == fd Then
1463  used_refs++
1464  ios_left--
1465  Return * File reference cache
1467  io_file_put(state)
1469  * File reference cache = fget_many(fd, ios_left)
1470  If Not * File reference cache Then Return NULL
1473  fd = fd
1474  has_refs = ios_left
1475  used_refs = 1
1476  ios_left--
1477  Return * File reference cache
Caller
NameDescribe
io_req_set_file