Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_fs_type

Proto:struct file_system_type *get_fs_type(const char *name)

Type:struct file_system_type

Parameter:

TypeParameterName
const char *name
268  dot = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
269  len = If dot Then dot - name Else strlen - Find the length of a string*@s: The string to be sized
271  fs = __get_fs_type(name, len)
272  If Not fs && try to load a kernel module("fs-%.*s", len, name) == 0 Then
273  fs = __get_fs_type(name, len)
274  WARN_ONCE(!fs, "request_module fs-%.*s succeeded, but still no fs?\n", len, name)
277  If dot && fs && Not (fs_flags & FS_HAS_SUBTYPE) Then
278  put_filesystem(fs)
279  fs = NULL
281  Return fs
Caller
NameDescribe
aa_new_mount
do_new_mountreate a new mount for userspace and request it to be added into the* namespace's tree
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