函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_gc_thread - Garbage collector thread function.*@unused: Unused.* Returns 0.

函数原型:static int tomoyo_gc_thread(void *unused)

返回类型:int

参数:

类型参数名称
void *unused
615  DEFINE_MUTEX(tomoyo_gc_mutex)
617  如果非mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically则转到:out
619  moyo_collect_entry - Try to kfree() deleted elements.* Returns nothing.
624  加自旋锁
627  如果Users counter protected by tomoyo_io_buffer_list_lock. 则继续下一循环
629  删除链表项
630  释放内存
631  释放内存
632  释放内存
634  自旋锁解锁
636  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.
637  out :
639  返回:0