summaryrefslogtreecommitdiff
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-31 06:16:22 -0400
committerIan Moffett <ian@osmora.org>2025-07-31 06:16:22 -0400
commit7e8ff80fadd2066f8fa9a058efe23aa301325433 (patch)
tree15ceceea43cf54092bf7e006d49bfe3514d1eeda /sys/vm/vm_map.c
parentcd929e7209f3fd67e1fab257ea76994bbb3fc64f (diff)
kernel: descrip: Add 'td' parameter to fd routines
Update the signature of 'fd_get()', 'fd_alloc()' and 'fd_dup()' to include a pointer to the process to target. This improves the flexibility of the file descriptor API. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 26effdb..bb9df83 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -192,7 +192,7 @@ mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off)
* is shared.
*/
if (ISSET(flags, MAP_SHARED)) {
- fdp = fd_get(fildes);
+ fdp = fd_get(NULL, fildes);
if (fdp == NULL) {
pr_error("mmap: no such fd (fd=%d)\n", fildes);
return NULL;