Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-28 08:57:57
Last Modify:2020-03-17 11:04:53 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mm_clear_owner

Proto:static __always_inline void mm_clear_owner(struct mm_struct *mm, struct task_struct *p)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
struct task_struct *p
987  If * "owner" points to a task that is regarded as the canonical * user/owner of this mm. All of the following must be true in * order for it to be changed: * current == mm->owner * current->mm != mm * new_owner->mm == mm * new_owner->alloc_lock is held == p Then WRITE_ONCE(* "owner" points to a task that is regarded as the canonical * user/owner of this mm. All of the following must be true in * order for it to be changed: * current == mm->owner * current->mm != mm * new_owner->mm == mm * new_owner->alloc_lock is held, NULL)
Caller
NameDescribe
copy_processCreate a new process