Date: Fri, 29 Apr 2016 20:12:45 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298797 - in head/sys: kern sys Message-ID: <201604292012.u3TKCjbr006632@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Fri Apr 29 20:12:45 2016 New Revision: 298797 URL: https://svnweb.freebsd.org/changeset/base/298797 Log: 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 Modified: head/sys/kern/sys_socket.c head/sys/sys/socketvar.h Modified: head/sys/kern/sys_socket.c ============================================================================== --- head/sys/kern/sys_socket.c Fri Apr 29 20:11:09 2016 (r298796) +++ head/sys/kern/sys_socket.c Fri Apr 29 20:12:45 2016 (r298797) @@ -512,7 +512,7 @@ soaio_kproc_create(void *context, int pe mtx_unlock(&soaio_jobs_lock); } -static void +void soaio_enqueue(struct task *task) { Modified: head/sys/sys/socketvar.h ============================================================================== --- head/sys/sys/socketvar.h Fri Apr 29 20:11:09 2016 (r298796) +++ head/sys/sys/socketvar.h Fri Apr 29 20:12:45 2016 (r298797) @@ -341,6 +341,7 @@ int getsock_cap(struct thread *td, int f 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604292012.u3TKCjbr006632>