Function Report

Linux Kernel (v4.4)

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

Function Name:task_active_pid_ns

Function:struct pid_namespace * task_active_pid_ns(struct task_struct *tsk)

Return Type:struct pid_namespace *

Parameter:

Type Parameter NameRemarks
struct task_struct * tsk

Function description:

547  Returning returns the pid namespace in which the specified pid was allocated.
Caller
Function NameFunction description
ptrace_event_pid possibly stop for a ptrace event notification
copy_processCreate a new process
find_child_reaper
__send_signal
send_signal
do_notify_parentLet a parent know about the death of a child. For a stopped/continued status change, use do_notify_parent_cldstop instead.
do_notify_parent_cldstop notify parent of stopped/continued state change
find_vpid
find_task_by_vpid
pid_vnr
__task_pid_nr_ns
SYSC_reboot
acct_on
SYSC_acct
acct_process handles process accounting for an exiting task
cgroup_pidlist_find
cgroup_pidlist_find_createfind the appropriate pidlist for our purpose(given procs vs tasks) returns with the lock on that pidlist already held, and takes care of the use count, or returns NULL with no locks held if we're out of memory.
copy_pid_ns
pid_ns_ctl_handler
pidns_get
pidns_install
audit_netlink_okCheck for appropriate CAP_AUDIT_ capabilities on incoming audit control messages.
fill_stats_for_pid
add_del_listener
perf_event_allocAllocate and initialize a event structure
exec_binprm
proc_mount
loadavg_proc_show