Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\pid_namespace.c Create Date:2022-07-28 11:20:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pidns_get_parent

Proto:static struct ns_common *pidns_get_parent(struct ns_common *ns)

Type:struct ns_common

Parameter:

TypeParameterName
struct ns_common *ns
414  active = task_active_pid_ns(current process)
418  pid_ns = p = parent
419  cycle
420  If Not p Then Return ERR_PTR( - EPERM)
422  If p == active Then Break
424  p = parent
427  Return ns