From 022ca2fc7fe08d51f33a1d23a9be49e6d132914e Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 2 Jan 2021 16:34:20 -0700 Subject: Add aio_writev and aio_readv POSIX AIO is great, but it lacks vectored I/O functions. This commit fixes that shortcoming by adding aio_writev and aio_readv. They aren't part of the standard, but they're an obvious extension. They work just like their synchronous equivalents pwritev and preadv. It isn't yet possible to use vectored aiocbs with lio_listio, but that could be added in the future. Reviewed by: jhb, kib, bcr Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27743 --- sys/bsm/audit_kevents.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/bsm') diff --git a/sys/bsm/audit_kevents.h b/sys/bsm/audit_kevents.h index 5b37329078a1..eeb928ecafdc 100644 --- a/sys/bsm/audit_kevents.h +++ b/sys/bsm/audit_kevents.h @@ -660,6 +660,8 @@ #define AUE_REALPATHAT 43264 /* FreeBSD-specific. */ #define AUE_CLOSERANGE 43265 /* FreeBSD-specific. */ #define AUE_SPECIALFD 43266 /* FreeBSD-specific. */ +#define AUE_AIO_WRITEV 43267 /* FreeBSD-specific. */ +#define AUE_AIO_READV 43268 /* FreeBSD-specific. */ /* * Darwin BSM uses a number of AUE_O_* definitions, which are aliased to the -- cgit v1.2.3