updateuio_t: improve comment and style

Reported by:	netchild
Effort:		CHERI upstreaming
Fixes:		afe41f1ab9 ("sys/uio: add updateiov()")
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D60169
This commit is contained in:
Brooks Davis committed 2026-10-13 15:01:30 +01:00
1 parent 228d2ac511
commit deadb35bec
1 file changed
+5 -3
+5 -3
View File
@@ -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,