函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-27 09:57:34
Last Modify:2020-03-17 11:04:53 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mm_access

函数原型:struct mm_struct *mm_access(struct task_struct *task, unsigned int mode)

返回类型:struct mm_struct

参数:

类型参数名称
struct task_struct *task
unsigned intmode
1227  err等于mutex_lock_killable( & cred_guard_mutex)
1228  如果err则返回:错误号
1231  mm等于get_task_mm - acquire a reference to the task's mm* Returns %NULL if the task has no mm. Checks PF_KTHREAD (meaning* this kernel workthread has transiently adopted a user mm with use_mm,* to do its AIO) is not set and if so returns a reference to it, after
1232  如果mmmm不等于mm且非ptrace_may_access - check whether the caller is permitted to access* a target task
1234  Decrement the use count and release all resources for an mm.
1235  mm等于错误号
1237  mutex_unlock( & cred_guard_mutex)
1239  返回:mm
调用者
名称描述
process_vm_rw_coreprocess_vm_rw_core - core of reading/writing pages from task specified*@pid: PID of process to read/write from/to*@iter: where to copy to/from locally*@rvec: iovec array specifying where to copy to/from in the other process*@riovcnt: size of rvec