Thread (1 message) 1 message, 1 author, 2020-09-04

Re: [RESEND RFC PATCH 5/5] pidfd_mem: implemented remote memory mapping system call

From: Florian Weimer <hidden>
Date: 2020-09-04 19:18:53
Also in: linux-mm

* 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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help