函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ptrace_may_access

函数原型:bool ptrace_may_access(struct task_struct *task, unsigned int mode)

返回类型:bool

参数:

类型参数名称
struct task_struct *task
unsigned intmode
357  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
358  err等于Returns 0 on success, -errno on denial.
359  task_unlock(task)
360  返回:非err
调用者
名称描述
SYSCALL_DEFINE5
SYSCALL_DEFINE3sys_get_robust_list() - Get the robust-futex list head of a task*@pid: pid of the process [zero for current task]*@head_ptr: pointer to a list-head pointer, the kernel fills it in*@len_ptr: pointer to a length field, the kernel fills in the header size
COMPAT_SYSCALL_DEFINE3
kernel_move_pagesMove a list of pages in the address space of the currently executing* process.
mm_access
kernel_migrate_pages