Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int pidfd_create(struct pid *pid)

Type:int

Parameter:

TypeParameterName
struct pid *pid
516  fd = anon_inode_getfd("[pidfd]", & pidfd_fops, get_pid(pid), O_RDWR | O_CLOEXEC)
518  If fd < 0 Then put_pid(pid)
521  Return fd
Caller
NameDescribe
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