Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Allocate blank credentials, such that the credentials can be filled in at a* later date without risk of ENOMEM.

Proto:struct cred *cred_alloc_blank(void)

Type:struct cred

Parameter:Nothing

217  new = Shortcuts
218  If Not new Then Return NULL
221  atomic_set( & usage, 1)
226  If security_cred_alloc_blank(new, GFP_KERNEL_ACCOUNT) < 0 Then Go to error
229  Return new
231  error :
232  abort_creds - Discard a set of credentials and unlock the current task*@new: The credentials that were going to be applied* Discard a set of credentials that were under construction and unlock the* current task.
233  Return NULL