summaryrefslogtreecommitdiffstats
path: root/sys/sys/aio.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-01-06 21:03:39 +0000
committeralc <alc@FreeBSD.org>2002-01-06 21:03:39 +0000
commit938cb766b865d01150650a56d7b2cbb7df3d1d59 (patch)
tree32f8006cb163cc8459ce6e291f37968b476263a4 /sys/sys/aio.h
parent57b0798beeb9bf4f7d6996136f829f2f76ed0e8a (diff)
downloadFreeBSD-src-938cb766b865d01150650a56d7b2cbb7df3d1d59.zip
FreeBSD-src-938cb766b865d01150650a56d7b2cbb7df3d1d59.tar.gz
o Add missing synchronization (splnet()/splx()) in aio_free_entry().
o Move the definition of struct aiocblist from sys/aio.h to kern/vfs_aio.c. o Make aio_swake_cb() static.
Diffstat (limited to 'sys/sys/aio.h')
-rw-r--r--sys/sys/aio.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/sys/aio.h b/sys/sys/aio.h
index 9e37831..e9e2bd1 100644
--- a/sys/sys/aio.h
+++ b/sys/sys/aio.h
@@ -123,37 +123,11 @@ int aio_waitcomplete(struct aiocb **, struct timespec *);
__END_DECLS
#else
-/*
- * Job queue item
- */
-
-#define AIOCBLIST_CANCELLED 0x1
-#define AIOCBLIST_RUNDOWN 0x4
-#define AIOCBLIST_ASYNCFREE 0x8
-#define AIOCBLIST_DONE 0x10
-
-struct aiocblist {
- TAILQ_ENTRY(aiocblist) list; /* List of jobs */
- TAILQ_ENTRY(aiocblist) plist; /* List of jobs for proc */
- int jobflags;
- int jobstate;
- int inputcharge, outputcharge;
- struct callout_handle timeouthandle;
- struct buf *bp; /* Buffer pointer */
- struct proc *userproc; /* User process */ /* Not td! */
- struct file *fd_file; /* Pointer to file structure */
- struct aiothreadlist *jobaiothread; /* AIO process descriptor */
- struct aio_liojob *lio; /* Optional lio job */
- struct aiocb *uuaiocb; /* Pointer in userspace of aiocb */
- struct klist klist; /* list of knotes */
- struct aiocb uaiocb; /* Kernel I/O control block */
-};
/* Forward declarations for prototypes below. */
struct socket;
struct sockbuf;
-void aio_swake_cb(struct socket *, struct sockbuf *);
extern void (*aio_swake)(struct socket *, struct sockbuf *);
#endif
OpenPOWER on IntegriCloud