Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-28 20:07:55
Last Modify:2020-03-18 19:19:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_inode

Proto:static struct inode *alloc_inode(struct super_block *sb)

Type:struct inode

Parameter:

TypeParameterName
struct super_block *sb
226  ops = s_op
229  If alloc_inode Then inode = alloc_inode(sb)
231  Else inode = kmem_cache_alloc(inode_cachep, GFP_KERNEL)
234  If Not inode Then Return NULL
237  If Value for the false possibility is greater at compile time(de_init_always - perform inode structure initialisation*@sb: superblock inode belongs to*@inode: inode to initialise* These are initializations that need to be done on every inode* allocation as the fields are not initialised by slab allocation.) Then
238  If destroy_inode Then
240  If Not free_inode Then Return NULL
243  free_inode = free_inode
244  i_callback( & i_rcu)
245  Return NULL
248  Return inode
Caller
NameDescribe
new_inode_pseudow_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
iget5_lockedobtain an inode from a mounted file system
iget_lockedobtain an inode from a mounted file system