From 7e8ff80fadd2066f8fa9a058efe23aa301325433 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 31 Jul 2025 06:16:22 -0400 Subject: 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 --- sys/vm/vm_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm') 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; -- cgit v1.2.3