函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\crypto.c Create Date:2022-07-29 10:56:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Validate dentries in encrypted directories to make sure we aren't potentially* caching stale dentries after a key has been added.

函数原型:static int fscrypt_d_revalidate(struct dentry *dentry, unsigned int flags)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
unsigned intflags
304  如果非 protected by d_lock 按位与Encrypted name (dir key was unavailable) 的值则返回:1
319  如果flags按位与RCU pathwalk mode; semi-internal 则返回:负ECHILD
322  dir等于dget_parent(dentry)
323  err等于fscrypt_get_encryption_info(获得目录项的索引节点)
324  valid等于非fscrypt_has_encryption_key(获得目录项的索引节点)
325  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
327  如果err小于0则返回:err
330  返回:valid