diff options
author | jasone <jasone@FreeBSD.org> | 2000-01-14 02:53:29 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2000-01-14 02:53:29 +0000 |
commit | 241bd93929c50045d997159647c990ce30a09b38 (patch) | |
tree | e533e938e06d1bbf52b15ac617cd9ac2788c42ed /sys/kern/uipc_sockbuf.c | |
parent | 5955c7b34496a4da6142bb7a85bdab015975afce (diff) | |
download | FreeBSD-src-241bd93929c50045d997159647c990ce30a09b38.zip FreeBSD-src-241bd93929c50045d997159647c990ce30a09b38.tar.gz |
Add aio_waitcomplete(). Make aio work correctly for socket descriptors.
Make gratuitous style(9) fixes (me, not the submitter) to make the aio
code more readable.
PR: kern/12053
Submitted by: Chris Sedore <cmsedore@maxwell.syr.edu>
Diffstat (limited to 'sys/kern/uipc_sockbuf.c')
-rw-r--r-- | sys/kern/uipc_sockbuf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index c99bd3b..d71806b 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -50,6 +50,7 @@ #include <sys/socketvar.h> #include <sys/signalvar.h> #include <sys/sysctl.h> +#include <sys/aio.h> /* for aio_swake proto */ int maxsockets; @@ -337,6 +338,8 @@ sowakeup(so, sb) pgsigio(so->so_sigio, SIGIO, 0); if (sb->sb_flags & SB_UPCALL) (*so->so_upcall)(so, so->so_upcallarg, M_DONTWAIT); + if (sb->sb_flags & SB_AIO) + aio_swake(so, sb); } /* |