函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int io_uring_get_fd(struct io_ring_ctx *ctx)

返回类型:int

参数:

类型参数名称
struct io_ring_ctx *ctx
5290  ret等于get_unused_fd_flags(O_RDWR | O_CLOEXEC)
5291  如果ret小于0则转到: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  如果是错误
5297  put_unused_fd(ret)
5298  ret等于错误
5299  转到:err
5306  fd_install(ret, file)
5307  返回:ret
5308  err :
5313  返回:ret
调用者
名称描述
io_uring_create