函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:A single inode exists for all anon_inode files. Contrary to pipes,* anon_inode inodes have no associated per-instance data, so we need* only allocate one of them.

函数原型:struct inode *alloc_anon_inode(struct super_block *s)

返回类型:struct inode

参数:

类型参数名称
struct super_block *s
1148  static const struct address_space_operations anon_aops = {set_page_dirty = p .set_page_dirty method so that people can use .page_mkwrite on* anon inodes., }
1151  inode等于w_inode_pseudo - obtain an inode*@sb: superblock* Allocates a new inode for given superblock.* Inode wont be chained in superblock s_inodes list* This means :* - fs can't be unmount* - quotas, fsnotify, writeback can't work
1153  如果非inode则返回:错误号
1156  Stat data, not accessed from path walking 等于get_next_ino()
1157  a_ops等于anon_aops
1165  Misc 等于I_DIRTY
1166  i_mode等于S_IRUSR按位或S_IWUSR
1167  i_uid等于current_fsuid()
1168  i_gid等于current_fsgid()
1169  i_flags或等于Inode is fs-internal
1170  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.
1171  返回:inode
调用者
名称描述
anon_inode_init
aio_private_file