Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.h Create Date:2022-07-28 19:32:37
Last Modify:2020-03-18 09:12:16 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_sys_getppid - Copy of getppid().* Returns parent process's PID.* Alpha does not have getppid() defined. To be able to build this module on* Alpha, I have to copy getppid() from kernel/timer.c.

Proto:static inline pid_t tomoyo_sys_getppid(void)

Type:pid_t

Parameter:Nothing

1138  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1139  pid = task_tgid_vnr( fetch RCU-protected pointer for dereferencing(real_parent))
1140  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1141  Return pid
Caller
NameDescribe
tomoyo_print_headermoyo_print_header - Get header line of audit log.*@r: Pointer to "struct tomoyo_request_info".* Returns string representation.* This function uses kmalloc(), so caller must kfree() if this function* didn't return NULL.
tomoyo_conditionmoyo_condition - Check condition part.*@r: Pointer to "struct tomoyo_request_info".*@cond: Pointer to "struct tomoyo_condition". Maybe NULL.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().