diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-29 01:41:19 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-29 01:41:19 -0400 |
commit | b3fb473977c6bfb5294f229336a23d2071d565f8 (patch) | |
tree | aec1fe60787028943d65df1c1a97dc1079953ccc /sys/include | |
parent | 0b20b44c90ec4e2de0d5d2c8da99cb915eaf4a76 (diff) |
kernel: uio: Add iovec copyin/copyout routines
Introduce copyin() and copyout() type functions made for iovec/uio
operation.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/uio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/include/sys/uio.h b/sys/include/sys/uio.h index d1d4c65..4318a53 100644 --- a/sys/include/sys/uio.h +++ b/sys/include/sys/uio.h @@ -48,4 +48,11 @@ struct iovec { ssize_t readv(int filedes, const struct iovec *iov, int iovcnt); ssize_t writev(int filedes, const struct iovec *iov, int iovcnt); +#if defined(_KERNEL) + +int uio_copyin(const struct iovec *u_iov, struct iovec *k_iov, int iovcnt); +int uio_copyout(const struct iovec *k_iov, struct iovec *u_iov, int iovcnt); +void uio_copyin_clean(struct iovec *copy, int iovcnt); + +#endif /* _KERNEL */ #endif /* !_SYS_UIO_H_ */ |