函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:If the task doesn't already have a undo_list, then allocate one* here. We guarantee there is only one thread using this undo list,* and current is THE ONE* If this allocation and assignment succeeds, but later

函数原型:static inline int get_undo_list(struct sem_undo_list **undo_listp)

返回类型:int

参数:

类型参数名称
struct sem_undo_list **undo_listp
1836  undo_list等于undo_list
1837  如果非undo_list
1838  undo_list等于分配内存并置零
1839  如果(undo_list == NULL)则返回:负ENOMEM
1841  spin_lock_init( & lock)
1842  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
1843  初始化链表头
1845  undo_list等于undo_list
1847  undo_listp等于undo_list
1848  返回:0
调用者
名称描述
find_alloc_undod_alloc_undo - lookup (and if not present create) undo array*@ns: namespace*@semid: semaphore array id* The function looks up (and if not present creates) the undo structure.* The size of the undo structure depends on the size of the semaphore
copy_semundo重置信号量