函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\inode.c Create Date:2022-07-27 14:21:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_obj_do_get

函数原型:static void *bpf_obj_do_get(const struct filename *pathname, enum bpf_type *type, int flags)

返回类型:void

参数:

类型参数名称
const struct filename *pathname
enum bpf_type *type
intflags
455  ret等于kern_path( pointer to actual string , llow links at the end , & path)
456  如果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  如果ret则转到:out
464  ret等于bpf_inode_type(inode, type)
465  如果ret则转到:out
468  raw等于bpf_any_get(s or device private pointer , * type)
469  如果非是错误touch_atime( & path)
472  path_put( & path)
473  返回:raw
474  out :
475  path_put( & path)
476  返回:错误号
调用者
名称描述
bpf_obj_get_user