函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\libfs.c Create Date:2022-07-29 10:40:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:int simple_fill_super(struct super_block *s, unsigned long magic, const struct tree_descr *files)

返回类型:int

参数:

类型参数名称
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等于取新的索引节点
547  如果非inode则返回:负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  如果非root则返回:负ENOMEM
562  以非namename[0]循环
563  如果非name则继续下一循环
567  如果此条件成立可能性小(为编译器优化)(i == 1)则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  如果非dentry则转到:out
575  inode等于取新的索引节点
576  如果非inode
578  转到: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  添加目录项到哈希队列
586  s_root等于root
587  返回:0
588  out :
589  d_genocide(root)
590  收缩高速缓存区
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  返回:负ENOMEM
调用者
名称描述
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