summaryrefslogtreecommitdiffstats
path: root/sys/sys/protosw.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-04-29 20:11:09 +0000
committerjhb <jhb@FreeBSD.org>2016-04-29 20:11:09 +0000
commitab5f9da057b693ec173701339d6b48865c06d82b (patch)
treeb39ae022b662378653d6ed1a1003d86fb902e747 /sys/sys/protosw.h
parent5bfd61af6774bdd96385fcb4e870a41f5b04b563 (diff)
downloadFreeBSD-src-ab5f9da057b693ec173701339d6b48865c06d82b.zip
FreeBSD-src-ab5f9da057b693ec173701339d6b48865c06d82b.tar.gz
Introduce a new protocol hook pru_aio_queue.
This allows a protocol to claim individual AIO requests instead of using the default socket AIO handling. Sponsored by: Chelsio Communications
Diffstat (limited to 'sys/sys/protosw.h')
-rw-r--r--sys/sys/protosw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h
index 55db0e3..2a44d80 100644
--- a/sys/sys/protosw.h
+++ b/sys/sys/protosw.h
@@ -34,6 +34,7 @@
#define _SYS_PROTOSW_H_
/* Forward declare these structures referenced from prototypes below. */
+struct kaiocb;
struct mbuf;
struct thread;
struct sockaddr;
@@ -228,12 +229,14 @@ struct pr_usrreqs {
struct thread *td);
int (*pru_connectat)(int fd, struct socket *so,
struct sockaddr *nam, struct thread *td);
+ int (*pru_aio_queue)(struct socket *so, struct kaiocb *job);
};
/*
* All nonvoid pru_*() functions below return EOPNOTSUPP.
*/
int pru_accept_notsupp(struct socket *so, struct sockaddr **nam);
+int pru_aio_queue_notsupp(struct socket *so, struct kaiocb *job);
int pru_attach_notsupp(struct socket *so, int proto, struct thread *td);
int pru_bind_notsupp(struct socket *so, struct sockaddr *nam,
struct thread *td);
OpenPOWER on IntegriCloud