Function Report

Linux Kernel (v4.4)

Source File:kernel\fork.c Create Date:2016-01-14 10:16:27
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:mmput

Function:void mmput(struct mm_struct *mm)

Return Type:void

Parameter:

Type Parameter NameRemarks
struct mm_struct * mm

Function description:Decrement the use count and release all resources for an mm.

697  might_sleep
699  If decrement and test then
700  Free the area allocated for slots.
701  called when the last user of mm goes away. At this point, there is no way for any new requests to be submited or any of the io_* syscalls to be called on the context.
702  ksm_exit(mm)
703  khugepaged_exit(mm)
704  release all the mappings made in a process's VM space
705  change a reference to the mm's executable file
708  list_del
711  If binfmt then module_put(module)
713  mmdrop(mm)
Caller
Function NameFunction description
mm_access
dup_mmAllocate a new mm structure and copy contents from the mm structure of the passed in task structure.
copy_processCreate a new process
exit_mmTurn us into a lazy TLB process if we aren't already..
ptrace_request
k_getrusage
update_tasks_nodemask Update the nodemasks of tasks in the cpuset.
cpuset_attach
trace_user_stack_print TRACE_USER_STACK
build_map_info
register_for_each_vma
get_cmdline copy the cmdline value to a buffer.
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
process_vm_rw_core core of reading/writing pages from task specified
try_to_unuseWe completely avoid races by reading each swap page in advance, and then search for the process using it. All the necessary page table adjustments can then be made atomically.
SYSC_migrate_pages
SYSC_move_pages
mem_cgroup_can_attach
mem_cgroup_move_task
exec_mmap
do_execveat_commonsys_execve() executes a new program.
userfaultfd_ctx_put Releases a reference to the internal userfaultfd context.
userfaultfd_file_create Creates an userfaultfd file pointer.
m_start
m_stop
vma_stop
clear_refs_write
pagemap_read/proc/pid/pagemap- an array mapping virtual pages to pfns
proc_pid_cmdline_read
proc_pid_auxv
proc_mem_open
mem_rw
environ_read
proc_exe_link
map_files_d_revalidate
proc_map_files_get_link
proc_map_files_lookup
proc_map_files_readdir
proc_pid_status
do_task_stat
proc_pid_statm