[LTP] [PATCH v3] Introduce ioctl_pidfd_get_info_supported() function
Petr Vorel
pvorel@suse.cz
Tue Sep 23 20:44:49 CEST 2025
Hi Avinesh,
> use this routine in ioctl_pidfd05 before proceeding with the test
Reviewed-by: Petr Vorel <pvorel@suse.cz>
BTW, when testing on 6.11, I got:
ioctl_pidfd05.c:45: TFAIL: ioctl(pidfd, PIDFD_GET_INFO, NULL) expected EINVAL: ENOTTY (25)
Which is error unrelated to this patch, it's from original.
196988f7d1 ("Add ioctl_pidfd05 test")
Doc in ioctl_pidfd_info_exit_supported() is clear about it:
/* - ENOTTY: old kernels not implementing fs/pidfs.c:pidfd_ioctl
* - EINVAL: until v6.13 kernel
* - ESRCH: all kernels between v6.13 and v6.15
*/
But test happily ignores the fact :).
@Cyril do we want to fix it? Do we want to check for kernel versions or we just
take any of these values?
Kind regards,
Petr
More information about the ltp
mailing list