Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:struct inode *alloc_anon_inode(struct super_block *s)

Type:struct inode

Parameter:

TypeParameterName
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  If Not inode Then Return ERR_PTR( - ENOMEM)
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  Return inode
Caller
NameDescribe
anon_inode_init
aio_private_file