函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Initialize a parent watch entry.

函数原型:static struct audit_parent *audit_init_parent(struct path *path)

返回类型:struct audit_parent

参数:

类型参数名称
struct path *path
138  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
142  parent等于分配内存并置零
143  如果此条件成立可能性小(为编译器优化)(!parent)则返回:错误号
146  初始化链表头
148  Nothing fancy, just initialize lists and locks and counters.
149  Mask this mark is for [mark->lock, group->mark_mutex] 等于snotify events we care about.
150  ret等于fsnotify_add_inode_mark( & fsnotify mark on the inode , inode, 0)
151  如果ret小于0则
152  audit_free_parent(parent)
153  返回:错误号
156  返回:parent
调用者
名称描述
audit_add_watchFind a matching watch entry, or add this one.* Caller must hold audit_filter_mutex.