函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-27 09:57:49
Last Modify:2020-03-17 11:04:53 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static void pidfd_show_fdinfo(struct seq_file *m, struct file *f)

返回类型:void

参数:

类型参数名称
struct seq_file *m
struct file *f
1739  pid等于 needed for tty driver, and maybe others
1741  nr等于负1
1743  如果此条件成立可能性大(为编译器优化)(pid_has_task(pid, 单一进程))则
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')