函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit_watch.c Create Date:2022-07-27 12:32:34
Last Modify:2020-03-17 17:15:07 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Get path information necessary for adding watches.

函数原型:static int audit_get_nd(struct audit_watch *watch, struct path *parent)

返回类型:int

参数:

类型参数名称
struct audit_watch *watch
struct path *parent
351  d等于kern_path_locked(sertion path , parent)
352  如果是错误则返回:错误
354  如果d_is_positive(d)则
356  associated superblock device 等于s_dev
357  associated inode number 等于i_ino
359  inode_unlock(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)
360  dput(d)
361  返回:0
调用者
名称描述
audit_add_watchFind a matching watch entry, or add this one.* Caller must hold audit_filter_mutex.