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_filesystem_list

Proto:int __init get_filesystem_list(char *buf)

Type:int

Parameter:

TypeParameterName
char *buf
213  len = 0
216  read_lock( & file_systems_lock)
217  tmp = Handling of filesystem drivers list.* Rules:* Inclusion to/removals from/scanning of list are protected by spinlock.* During the unload module must call unregister_filesystem().* We can access the fields of list element if:* 1) spinlock is held or
218  When tmp && len < PAGE_SIZE - 80 cycle
219  len += sprintf(buf + len, "%s\t%s\n", (fs_flags & FS_REQUIRES_DEV) ? "" : "nodev", name)
222  tmp = next
224  read_unlock( & file_systems_lock)
225  Return len