Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_obj_do_get

Proto:static void *bpf_obj_do_get(const struct filename *pathname, enum bpf_type *type, int flags)

Type:void

Parameter:

TypeParameterName
const struct filename *pathname
enum bpf_type *type
intflags
455  ret = kern_path( pointer to actual string , llow links at the end , & path)
456  If ret Then Return ERR_PTR(ret)
459  inode = d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
460  ret = inode_permission(inode, ACC_MODE(flags))
461  If ret Then Go to out
464  ret = bpf_inode_type(inode, type)
465  If ret Then Go to out
468  raw = bpf_any_get(s or device private pointer , * type)
469  If Not IS_ERR(raw) Then touch_atime( & path)
472  path_put( & path)
473  Return raw
474  out :
475  path_put( & path)
476  Return ERR_PTR(ret)
Caller
NameDescribe
bpf_obj_get_user