函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pidfd_create() - Create a new pid file descriptor.*@pid: struct pid that the pidfd will reference* This creates a new pid file descriptor with the O_CLOEXEC flag set.* Note, that this function can only be called after the fd table has

函数原型:static int pidfd_create(struct pid *pid)

返回类型:int

参数:

类型参数名称
struct pid *pid
516  fd等于anon_inode_getfd("[pidfd]", & pidfd_fops, get_pid(pid), O_RDWR | O_CLOEXEC)
518  如果fd小于0则put_pid(pid)
521  返回:fd
调用者
名称描述
SYSCALL_DEFINE2pidfd_open() - Open new pid file descriptor.*@pid: pid for which to retrieve a pidfd*@flags: flags to pass* This creates a new pid file descriptor with the O_CLOEXEC flag set for* the process identified by @pid. Currently, the process identified by