Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:scrypt_init() - Set up for fs encryption.

Proto:static int __init fscrypt_init(void)

Type:int

Parameter:Nothing

397  err = -ENOMEM
407  fscrypt_read_workqueue = alloc_workqueue("fscrypt_read_queue", WQ_UNBOUND | WQ_HIGHPRI, num_online_cpus())
410  If Not fscrypt_read_workqueue Then Go to fail
413  fscrypt_info_cachep = Please use this macro to create slab caches. Simply specify the* name of the structure and maybe some flags that are listed above.* The alignment of the struct determines object alignment. If you* f(fscrypt_info, Objects are reclaimable )
414  If Not fscrypt_info_cachep Then Go to fail_free_queue
417  err = fscrypt_init_keyring()
418  If err Then Go to fail_free_info
421  Return 0
423  fail_free_info :
424  kmem_cache_destroy(fscrypt_info_cachep)
425  fail_free_queue :
426  destroy_workqueue - safely terminate a workqueue*@wq: target workqueue* Safely destroy a workqueue. All work currently pending will be done first.
427  fail :
428  Return err