Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fsopen.c Create Date:2022-07-28 20:13:26
Last Modify:2022-05-24 07:35:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Attach a filesystem context to a file and an fd.

Proto:static int fscontext_create_fd(struct fs_context *fc, unsigned int o_flags)

Type:int

Parameter:

TypeParameterName
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  If fd < 0 Then put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of.
95  Return fd
Caller
NameDescribe
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.