Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Allocate an anonymous fd, this is what constitutes the application* visible backing of an io_uring instance. The application mmaps this* fd to gain access to the SQ/CQ ring details. If UNIX sockets are enabled,

Proto:static int io_uring_get_fd(struct io_ring_ctx *ctx)

Type:int

Parameter:

TypeParameterName
struct io_ring_ctx *ctx
5290  ret = get_unused_fd_flags(O_RDWR | O_CLOEXEC)
5291  If ret < 0 Then Go to err
5294  file = anon_inode_getfile - creates a new file instance by hooking it up to an* anonymous inode, and a dentry that describe the "class"* of the file*@name: [in] name of the "class" of the new file*@fops: [in] file operations for the new file*@priv: [in] private
5296  If IS_ERR(file) Then
5297  put_unused_fd(ret)
5298  ret = PTR_ERR(file)
5299  Go to err
5306  fd_install(ret, file)
5307  Return ret
5308  err :
5313  Return ret
Caller
NameDescribe
io_uring_create