Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-28 08:58:19
Last Modify:2020-03-17 11:04:53 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pidfd_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

Proto:static void pidfd_show_fdinfo(struct seq_file *m, struct file *f)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
struct file *f
1739  pid = needed for tty driver, and maybe others
1741  nr = -1
1743  If Value is more likely to compile time(pid_has_task(pid, PIDTYPE_PID)) Then
1744  ns = get the associated pid namespace for a file in procfs
1745  nr = pid_nr_ns(pid, ns)
1748  seq_put_decimal_ll(m, "Pid:\t", nr)
1764  seq_putc(m, '\n')