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:register_filesystem - unregister a file system*@fs: filesystem to unregister* Remove a file system that was previously successfully registered* with the kernel

Proto:int unregister_filesystem(struct file_system_type *fs)

Type:int

Parameter:

TypeParameterName
struct file_system_type *fs
111  write_lock( & file_systems_lock)
112  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
113  When tmp cycle
114  If fs == tmp Then
115  tmp = next
116  next = NULL
119  Return 0
121  tmp = next
123  write_unlock( & file_systems_lock)
125  Return -EINVAL
Caller
NameDescribe
exit_misc_binfmt