函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:parent_len - find the length of the parent portion of a pathname*@path: pathname of which to determine length

函数原型:int parent_len(const char *path)

返回类型:int

参数:

类型参数名称
const char *path
1274  plen等于strlen - Find the length of a string*@s: The string to be sized
1276  如果plen恒等于0则返回:plen
1280  p等于pathplen减1
1281 p恒等于'/'且p大于path循环
1282  p自减
1285 p不等于'/'且p大于path循环
1286  p自减
1289  如果p恒等于'/'则p自加
1292  返回:ppath
调用者
名称描述
audit_compare_dname_pathaudit_compare_dname_path - compare given dentry name with last component in* given path. Return of 0 indicates a match.*@dname: dentry name that we're comparing*@path: full pathname that we're comparing*@parentlen: length of the parent if known
__audit_inode__audit_inode - store the inode and device from a lookup*@name: name being audited*@dentry: dentry being audited*@flags: attributes for this particular entry