From 5163d2ec949212c3b0231c86907384f440b5a36e Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 29 Apr 2016 20:12:45 +0000 Subject: [PATCH] Expose soaio_enqueue(). This can be used by protocol-specific AIO handlers to queue work to the socket AIO daemon pool. Sponsored by: Chelsio Communications --- sys/kern/sys_socket.c | 2 +- sys/sys/socketvar.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c index ba307be1b0be..e6416b9fe696 100644 --- a/sys/kern/sys_socket.c +++ b/sys/kern/sys_socket.c @@ -512,7 +512,7 @@ soaio_kproc_create(void *context, int pending) mtx_unlock(&soaio_jobs_lock); } -static void +void soaio_enqueue(struct task *task) { diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index 176f16cee444..c675cfb5a8ca 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -341,6 +341,7 @@ int getsock_cap(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp, u_int *fflagp); void soabort(struct socket *so); int soaccept(struct socket *so, struct sockaddr **nam); +void soaio_enqueue(struct task *task); void soaio_rcv(void *context, int pending); void soaio_snd(void *context, int pending); int socheckuid(struct socket *so, uid_t uid);