Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dcookie_register

Proto:struct dcookie_user *dcookie_register(void)

Type:struct dcookie_user

Parameter:Nothing

320  mutex_lock( & dcookie_mutex)
322  user = Allocation memory
323  If Not user Then Go to out
326  If Not is_live() && dcookie_init() Then Go to out_free
329  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
331  out :
332  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.
333  Return user
334  out_free :
335  kfree(user)
336  user = NULL
337  Go to out