函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_struct_used_by_io_buffer - Check whether the list element is used by /sys/kernel/security/tomoyo/ users or not.*@element: Pointer to "struct list_head".* Returns true if @element is used by /sys/kernel/security/tomoyo/ users,* false otherwise.

函数原型:static bool tomoyo_struct_used_by_io_buffer(const struct list_head *element)

返回类型:bool

参数:

类型参数名称
const struct list_head *element
43  bool in_use = false
45  加自旋锁
47  Users counter protected by tomoyo_io_buffer_list_lock. 自加
48  自旋锁解锁
49  mutex_lock( & Exclusive lock for this structure. )
50  如果domain恒等于elementgroup恒等于elementacl恒等于elementlist恒等于elementin_use = true
53  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.
54  加自旋锁
55  Users counter protected by tomoyo_io_buffer_list_lock. 自减
56  如果in_use退出
59  自旋锁解锁
60  返回:in_use
调用者
名称描述
tomoyo_try_to_gcmoyo_try_to_gc - Try to kfree() an entry.*@type: One of values in "enum tomoyo_policy_id".*@element: Pointer to "struct list_head".* Returns nothing.* Caller holds tomoyo_policy_lock mutex.