函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_inode

函数原型:static struct inode *alloc_inode(struct super_block *sb)

返回类型:struct inode

参数:

类型参数名称
struct super_block *sb
226  ops等于s_op
229  如果alloc_inodeinode等于alloc_inode(sb)
231  否则inode等于分配高速缓存区
234  如果非inode则返回:NULL
237  如果此条件成立可能性小(为编译器优化)(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.)则
238  如果destroy_inode
240  如果非free_inode则返回:NULL
243  free_inode等于free_inode
244  i_callback( & i_rcu)
245  返回:NULL
248  返回:inode
调用者
名称描述
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_locked从文件系统上获得索引节点
iget_locked从文件系统上获得索引节点