Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:he inodes created here are not hashed. If you use iunique to generate* unique inode values later for this filesystem, then you must take care* to pass it an appropriate max_reserved value to avoid collisions.

Proto:int simple_fill_super(struct super_block *s, unsigned long magic, const struct tree_descr *files)

Type:int

Parameter:

TypeParameterName
struct super_block *s
unsigned longmagic
const struct tree_descr *files
540  s_blocksize = PAGE_SIZE
541  s_blocksize_bits = PAGE_SHIFT determines the page size
542  s_magic = magic
543  s_op = simple_super_operations
544  s_time_gran = 1
546  inode = obtain an inode
547  If Not inode Then Return -ENOMEM
553  Stat data, not accessed from path walking = 1
554  i_mode = S_IFDIR | 0755
555  i_atime = i_mtime = i_ctime = rrent_time - Return FS time*@inode: inode.* Return the current time truncated to the time granularity supported by* the fs.* Note that inode and inode->sb cannot be NULL.* Otherwise, the function warns and returns time without truncation.
556  i_op = simple_dir_inode_operations
557  rmer ->i_op->default_file_ops = simple_dir_operations
558  set_nlink - directly set an inode's link count*@inode: inode*@nlink: new nlink (should be non-zero)* This is a low-level filesystem helper to replace any* direct filesystem manipulation of i_nlink.
559  root = d_make_root(inode)
560  If Not root Then Return -ENOMEM
562  When Not name || name[0] cycle
563  If Not name Then Continue
567  If Value for the false possibility is greater at compile time(i == 1) Then printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
572  dentry = d_alloc_name(root, name)
573  If Not dentry Then Go to out
575  inode = obtain an inode
576  If Not inode Then
578  Go to out
580  i_mode = S_IFREG | mode
581  i_atime = i_mtime = i_ctime = rrent_time - Return FS time*@inode: inode.* Return the current time truncated to the time granularity supported by* the fs.* Note that inode and inode->sb cannot be NULL.* Otherwise, the function warns and returns time without truncation.
582  rmer ->i_op->default_file_ops = ops
583  Stat data, not accessed from path walking = i
584  d_add - add dentry to hash queues*@entry: dentry to add*@inode: The inode to attach to this dentry* This adds the entry to the hash queues and initializes @inode.* The entry was actually filled in earlier during d_alloc().
586  s_root = root
587  Return 0
588  out :
589  d_genocide(root)
590  prune dcache
591  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
592  Return -ENOMEM
Caller
NameDescribe
sel_fill_super
smk_fill_supersmk_fill_super - fill the smackfs superblock*@sb: the empty superblock*@fc: unused* Fill in the well known entries for the smack filesystem* Returns 0 on success, an error code on failure
apparmorfs_fill_super
bm_fill_super
bpf_fill_super