Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\inode.c Create Date:2022-07-28 13:06:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_get_inode

Proto:static struct inode *bpf_get_inode(struct super_block *sb, const struct inode *dir, umode_t mode)

Type:struct inode

Parameter:

TypeParameterName
struct super_block *sb
const struct inode *dir
umode_tmode
88  Case & == S_IFDIR
89  Case & == S_IFREG
90  Case & == S_IFLNK
91  Break
92  Default
93  Return ERR_PTR( - EINVAL)
96  inode = obtain an inode
97  If Not inode Then Return ERR_PTR( - ENOSPC)
100  Stat data, not accessed from path walking = get_next_ino()
101  i_atime = current_time(inode)
102  i_mtime = i_atime
103  i_ctime = i_atime
105  de_init_owner - Init uid,gid,mode for new inode according to posix standards*@inode: New inode*@dir: Directory inode*@mode: mode of the new inode
107  Return inode
Caller
NameDescribe
bpf_mkdir
bpf_mkobj_ops
bpf_symlink