diff options
author | glebius <glebius@FreeBSD.org> | 2013-06-08 13:27:57 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-06-08 13:27:57 +0000 |
commit | 9a02f3097ddccd309eb701a3492242b74427cc2b (patch) | |
tree | 74456d69981c688882dfa80e300e43d3cc2bb64c /sys/sys/aio.h | |
parent | bf96f17d6fd96b6131ace044bb51efb86a5b07b6 (diff) | |
download | FreeBSD-src-9a02f3097ddccd309eb701a3492242b74427cc2b.zip FreeBSD-src-9a02f3097ddccd309eb701a3492242b74427cc2b.tar.gz |
Add new system call - aio_mlock(). The name speaks for itself. It allows
to perform the mlock(2) operation, which can consume a lot of time, under
control of aio(4).
Reviewed by: kib, jilles
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/sys/aio.h')
-rw-r--r-- | sys/sys/aio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/aio.h b/sys/sys/aio.h index 5a8779b..d6ef6aa 100644 --- a/sys/sys/aio.h +++ b/sys/sys/aio.h @@ -37,6 +37,7 @@ #define LIO_READ 0x2 #ifdef _KERNEL #define LIO_SYNC 0x3 +#define LIO_MLOCK 0x4 #endif /* @@ -124,6 +125,11 @@ int aio_cancel(int, struct aiocb *); */ int aio_suspend(const struct aiocb * const[], int, const struct timespec *); +/* + * Asynchronous mlock + */ +int aio_mlock(struct aiocb *); + #ifdef __BSD_VISIBLE int aio_waitcomplete(struct aiocb **, struct timespec *); #endif |