Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_prog_get_type_path

Proto:struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type)

Type:struct bpf_prog

Parameter:

TypeParameterName
const char *name
enum bpf_prog_typetype
544  ret = kern_path(name, llow links at the end , & path)
545  If ret Then Return ERR_PTR(ret)
547  prog = __get_prog_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, type)
548  If Not IS_ERR(prog) Then touch_atime( & path)
550  path_put( & path)
551  Return prog