函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return the size expected for the given fscrypt_context based on its version* number, or 0 if the context version is unrecognized.

函数原型:static inline int fscrypt_context_size(const union fscrypt_context *ctx)

返回类型:int

参数:

类型参数名称
const union fscrypt_context *ctx
68  :version恒等于FSCRYPT_CONTEXT_V1
69  BUILD_BUG_ON - break compile if a condition is true(v1的长度 != 28)
70  返回:v1的长度
71  :version恒等于FSCRYPT_CONTEXT_V2
72  BUILD_BUG_ON - break compile if a condition is true(v2的长度 != 40)
73  返回:v2的长度
75  返回:0
调用者
名称描述
fscrypt_policy_from_context
fscrypt_policy_from_contextscrypt_policy_from_context - convert an fscrypt_context to an fscrypt_policy* Given an fscrypt_context, build the corresponding fscrypt_policy.* Return: 0 on success, or -EINVAL if the fscrypt_context has an unrecognized* version number or size.