Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:struct mm_struct *get_task_mm(struct task_struct *task)

Type:struct mm_struct

Parameter:

TypeParameterName
struct task_struct *task
1209  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.
1210  mm = mm
1211  If mm Then
1212  If Per task flags (PF_*), defined further below: & I am a kernel thread Then mm = NULL
1214  Else mmget() - Pin the address space associated with a &struct mm_struct.*@mm: The address space to pin.* Make sure that the address space of the given &struct mm_struct doesn't* go away. This does not protect against parts of the address space being
1217  task_unlock(task)
1218  Return mm
Caller
NameDescribe
mm_access
ptrace_access_vmAccess another process' address space via ptrace.* Source/target buffer must be kernel space,* Do not walk the page table directly, use get_user_pages
getrusage
update_tasks_nodemaskpdate_tasks_nodemask - Update the nodemasks of tasks in the cpuset.*@cs: the cpuset in which each task's mems_allowed mask needs to be changed* Iterate through each task of @cs updating its mems_allowed to the* effective cpuset's
cpuset_attach
trace_user_stack_printTRACE_USER_STACK
perf_event_addr_filters_applyUpdate event's address range filters based on the* task's existing mappings, if any.
access_process_vmAccess another process' address space.* - source/target buffer must be kernel space
access_process_vmAccess another process' address space.* Source/target buffer must be kernel space,* Do not walk the page table directly, use get_user_pages
kernel_migrate_pages
kernel_move_pagesMove a list of pages in the address space of the currently executing* process.
mem_cgroup_can_attach