svn commit: r298797 - in head/sys: kern sys

John Baldwin jhb at FreeBSD.org
Fri Apr 29 20:12:47 UTC 2016


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);


More information about the svn-src-head mailing list