Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\gc.c Create Date:2022-07-28 19:43:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_gc_thread - Garbage collector thread function.*@unused: Unused.* Returns 0.

Proto:static int tomoyo_gc_thread(void *unused)

Type:int

Parameter:

TypeParameterName
void *unused
615  DEFINE_MUTEX(tomoyo_gc_mutex)
617  If Not mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically Then Go to out
619  moyo_collect_entry - Try to kfree() deleted elements.* Returns nothing.
624  spin_lock( & Lock for protecting tomoyo_io_buffer_list. )
627  If Users counter protected by tomoyo_io_buffer_list_lock. Then Continue
629  deletes entry from list
630  kfree(Buffer for reading. )
631  kfree(Buffer for writing. )
632  kfree(head)
634  spin_unlock( & Lock for protecting tomoyo_io_buffer_list. )
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  Return 0