函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pid_nr_ns

函数原型:pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns)

返回类型:pid_t

参数:

类型参数名称
struct pid *pid
struct pid_namespace *ns
450  nr等于0
452  如果pid进程级别小于等于空间中级别
453  upid等于进程空间[进程级别]
454  如果进程所处空间恒等于nsnr等于进程号
457  返回:nr
调用者
名称描述
pid_vnr
__task_pid_nr_ns
sysvipc_msg_proc_show
sysvipc_shm_proc_show
pidfd_show_fdinfopidfd_show_fdinfo - print information about a pidfd*@m: proc fdinfo file*@f: file referencing a pidfd* Pid:* This function will print the pid that a given pidfd refers to in the* pid namespace of the procfs instance
locks_translate_pidlocks_translate_pid - translate a file_lock's fl_pid number into a namespace*@fl: The file_lock who's fl_pid should be translated*@ns: The namespace into which the pid should be translated* Used to tranlate a fl_pid into a namespace virtual pid number