函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:scrypt_initialize() - allocate major buffers for fs encryption

函数原型:int fscrypt_initialize(unsigned int cop_flags)

返回类型:int

参数:

类型参数名称
unsigned intcop_flags
348  err等于0
351  如果cop_flags按位与FS_CFLG_OWN_PAGES则返回:0
354  mutex_lock( & fscrypt_init_mutex)
355  如果fscrypt_bounce_page_pool则转到:out_unlock
358  err等于负ENOMEM
359  fscrypt_bounce_page_pool等于mempool_create_page_pool(num_prealloc_crypto_pages, 0)
361  如果非fscrypt_bounce_page_pool则转到:out_unlock
364  err等于0
365  out_unlock :
366  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
367  返回:err
调用者
名称描述
fscrypt_get_encryption_info