函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:取进程的空间

函数原型:struct pid_namespace *task_active_pid_ns(struct task_struct *tsk)

返回类型:struct pid_namespace

参数:

类型参数名称
struct task_struct *tsk
485  返回:设置进程信息
调用者
名称描述
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.* Returns true if our parent ignored us and so we've switched to* self-reaping.
do_notify_parent_cldstopdo_notify_parent_cldstop - notify parent of stopped/continued state change*@tsk: task reporting the state change*@for_ptracer: the notification is for ptracer*@why: CLD_{CONTINUED|STOPPED|TRAPPED} to report
access_pidfd_pidnsVerify that the signaler and signalee either are in the same pid namespace* or that the signaler's pid namespace is an ancestor of the signalee's pid* namespace.
find_vpid
find_task_by_vpid
pid_vnr
__task_pid_nr_ns
SYSCALL_DEFINE4Reboot system call: for obvious reasons only root may call it,* and even root needs to set up some magic numbers in the registers* so that some mistake won't make this reboot the whole machine.* You can also set the meaning of the ctrl-alt-del-key here.
acct_on
SYSCALL_DEFINE1sys_acct - enable/disable process accounting*@name: file name for accounting records or NULL to shutdown accounting* Returns 0 for success or negative errno values for failure.* sys_acct() is the only system call needed to implement process* accounting
acct_processacct_process* handles process accounting for an exiting task
cgroup_pidlist_find
cgroup_pidlist_find_created 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
pidns_get
pidns_install
pidns_get_parent
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 an event structure
posix_lock_to_flock
posix_lock_to_flock64
copy_process创建进程
ptrace_event_pidptrace_event_pid - possibly stop for a ptrace event notification*@event: %PTRACE_EVENT_* value to report*@pid: process identifier for %PTRACE_GETEVENTMSG to return* Check whether @event is enabled and, if so, report @event and @pid* to the ptrace parent
sysvipc_proc_open
exec_binprm