Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:scrypt_initialize() - allocate major buffers for fs encryption

Proto:int fscrypt_initialize(unsigned int cop_flags)

Type:int

Parameter:

TypeParameterName
unsigned intcop_flags
348  err = 0
351  If cop_flags & FS_CFLG_OWN_PAGES Then Return 0
354  mutex_lock( & fscrypt_init_mutex)
355  If fscrypt_bounce_page_pool Then Go to out_unlock
358  err = -ENOMEM
359  fscrypt_bounce_page_pool = mempool_create_page_pool(num_prealloc_crypto_pages, 0)
361  If Not fscrypt_bounce_page_pool Then Go to 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  Return err
Caller
NameDescribe
fscrypt_get_encryption_info