函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dcookie_register

函数原型:struct dcookie_user *dcookie_register(void)

返回类型:struct dcookie_user

参数:

320  mutex_lock( & dcookie_mutex)
322  user等于开辟内存
323  如果非user则转到:out
326  如果非is_live()且dcookie_init()则转到:out_free
329  添加链表项
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  返回:user
334  out_free :
335  释放内存
336  user = NULL
337  转到:out