git: deadb35becaa - main - updateuio_t: improve comment and style
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Oct 2026 14:01:40 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=deadb35becaae2788888e12868428b3a0ebef34f
commit deadb35becaae2788888e12868428b3a0ebef34f
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2026-10-13 14:01:30 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2026-10-13 14:01:30 +0000
updateuio_t: improve comment and style
Reported by: netchild
Effort: CHERI upstreaming
Fixes: afe41f1ab9f6 ("sys/uio: add updateiov()")
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D60169
---
sys/sys/syscallsubr.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index d55426cf7d98..33eb30453b49 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -97,11 +97,13 @@ typedef int (copyinuio_t)(const void *iovp, unsigned int iovcnt,
struct uio **iov);
/*
- * A updateiov_t takes a pointer to a struct uio previously created with
+ * An updateiov_t takes a pointer to a struct uio previously created with
* copyinuio_t and a pointer to the corresponding iovec in userspace.
- * It updates all lengths in userspace to match those in the uio.
+ * They update all lengths in userspace to match those in the uio.
+ * They are a helper for non-standard uio use (not using uiomove) such
+ * as that in the jail_get(2) system call implementation.
*/
-typedef int(updateiov_t)(const struct uio *uiop, void *iovp);
+typedef int (updateiov_t)(const struct uio *uiop, void *iovp);
uint64_t at2cnpflags(u_int at_flags, u_int mask);
int kern___getcwd(struct thread *td, char *buf, enum uio_seg bufseg,