Lines Matching refs:pidfd
506 static int copy_pidfd_info_to_user(int pidfd, in copy_pidfd_info_to_user() argument
518 info.pidfd = pidfd; in copy_pidfd_info_to_user()
528 unsigned int info_mode, int pidfd, in copy_info_records_to_user() argument
629 ret = copy_pidfd_info_to_user(pidfd, buf, count); in copy_info_records_to_user()
660 int ret, pidfd = -ESRCH, fd = -EBADF; in copy_event_to_user() local
741 pidfd = pidfd_prepare(event->pid, 0, &pidfd_file); in copy_event_to_user()
743 if (!FAN_GROUP_FLAG(group, FAN_REPORT_FD_ERROR) && pidfd < 0) in copy_event_to_user()
744 pidfd = pidfd == -ESRCH ? FAN_NOPIDFD : FAN_EPIDFD; in copy_event_to_user()
762 ret = copy_info_records_to_user(event, info, info_mode, pidfd, in copy_event_to_user()
772 fd_install(pidfd, pidfd_file); in copy_event_to_user()
786 put_unused_fd(pidfd); in copy_event_to_user()