函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:SYSCALL_DEFINE2(pidfd_open, pid_t, pid, unsigned int, flags)

返回类型:

参数:

545  如果flags则返回:负EINVAL
548  如果(pid <= 0)则返回:负EINVAL
551  p等于find_get_pid(pid)
552  如果非p则返回:负ESRCH
555  如果pid_has_task(p, PIDTYPE_TGID)则fd等于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
557  否则fd等于负EINVAL
560  put_pid(p)
561  返回:fd