函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_notify_gc - Register/unregister /sys/kernel/security/tomoyo/ users.*@head: Pointer to "struct tomoyo_io_buffer".*@is_register: True if register, false if unregister.* Returns nothing.

函数原型:void tomoyo_notify_gc(struct tomoyo_io_buffer *head, const bool is_register)

返回类型:void

参数:

类型参数名称
struct tomoyo_io_buffer *head
const boolis_register
652  bool is_write = false
654  加自旋锁
655  如果is_register
656  Users counter protected by tomoyo_io_buffer_list_lock. 等于1
657  添加链表项
658  否则
659  is_write = Buffer for writing. != NULL
662  释放内存
663  释放内存
664  释放内存
667  自旋锁解锁
668  如果is_writekthread_run - create and wake a thread.*@threadfn: the function to run until signal_pending(current).*@data: data ptr for @threadfn.*@namefmt: printf-style name for the thread.* Description: Convenient wrapper for kthread_create() followed by(moyo_gc_thread - Garbage collector thread function.*@unused: Unused.* Returns 0., NULL, "GC for TOMOYO")
调用者
名称描述
tomoyo_close_controlmoyo_close_control - close() for /sys/kernel/security/tomoyo/ interface.*@head: Pointer to "struct tomoyo_io_buffer".