* Adalbert Lazăr: > +/** > + * pidfd_mem() - Allow access to process address space. > + * > + * @pidfd: pid file descriptor for the target process > + * @fds: array where the control and access file descriptors are returned > + * @flags: flags to pass > + * > + * This creates a pair of file descriptors used to gain access to the > + * target process memory. The control fd is used to establish a linear > + * mapping between an offset range and a userspace address range. > + * The access fd is used to mmap(offset range) on the client side. > + * > + * Return: On success, 0 is returned. > + * On error, a negative errno number will be returned. > + */ > +SYSCALL_DEFINE3(pidfd_mem, int, pidfd, int __user *, fds, unsigned int, flags) Structs are cheap. Can you use a struct pointer for the fds argument?