函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fsopen.c Create Date:2022-07-29 10:44:25
Last Modify:2022-05-24 07:35:12 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Attach a filesystem context to a file and an fd.

函数原型:static int fscontext_create_fd(struct fs_context *fc, unsigned int o_flags)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
unsigned into_flags
91  fd等于anon_inode_getfd - 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
93  如果fd小于0则put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of.
95  返回:fd
调用者
名称描述
SYSCALL_DEFINE2Open a filesystem by name so that it can be configured for mounting.* We are allowed to specify a container in which the filesystem will be* opened, thereby indicating which namespaces will be used (notably, which
SYSCALL_DEFINE3Pick a superblock into a context for reconfiguration.