Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pid.h Create Date:2022-07-28 05:38:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:he helpers to get the pid's id seen from different namespaces* pid_nr() : global id, i.e. the id seen from the init namespace;* pid_vnr() : virtual id, i.e. the id seen from the pid namespace of* current.* pid_nr_ns() : id seen from the ns specified.

Proto:static inline pid_t pid_nr(struct pid *pid)

Type:pid_t

Parameter:

TypeParameterName
struct pid *pid
174  nr = 0
175  If pid Then nr = nr
177  Return nr
Caller
NameDescribe
copy_processCreate a new process