Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\keysetup.c Create Date:2022-07-28 20:24:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:select_encryption_mode

Proto:static struct fscrypt_mode *select_encryption_mode(const union fscrypt_policy *policy, const struct inode *inode)

Type:struct fscrypt_mode

Parameter:

TypeParameterName
const union fscrypt_policy *policy
const struct inode *inode
53  If S_ISREG(i_mode) Then Return available_modes[Return the contents encryption mode of a valid encryption policy ]
56  If S_ISDIR(i_mode) || S_ISLNK(i_mode) Then Return available_modes[Return the filenames encryption mode of a valid encryption policy ]
59  WARN_ONCE(1, "fscrypt: filesystem tried to load encryption info for inode %lu, which is not encryptable (file type %d)\n", Stat data, not accessed from path walking , (i_mode & S_IFMT))
61  Return ERR_PTR( - EINVAL)