summaryrefslogtreecommitdiff
path: root/nuttx/include/aio.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-05 15:33:31 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-05 15:33:31 -0600
commit5daa95bae187d09a50bc2663ee6291eb7c46b5dd (patch)
tree582ffeedb8a5aa6ed4b6d3da6ff4cf47eb475b1d /nuttx/include/aio.h
parent2bbdd8cc73bea765bf9464e3316c1b8a5cd8a47e (diff)
downloadpx4-nuttx-5daa95bae187d09a50bc2663ee6291eb7c46b5dd.tar.gz
px4-nuttx-5daa95bae187d09a50bc2663ee6291eb7c46b5dd.tar.bz2
px4-nuttx-5daa95bae187d09a50bc2663ee6291eb7c46b5dd.zip
Move all file operations from libc/aio to fs/aio. These will need to be kernel routines in order to handler issues with using file descriptors on worker thread
Diffstat (limited to 'nuttx/include/aio.h')
-rw-r--r--nuttx/include/aio.h24
1 files changed, 8 insertions, 16 deletions
diff --git a/nuttx/include/aio.h b/nuttx/include/aio.h
index 5de5bb713..202a24417 100644
--- a/nuttx/include/aio.h
+++ b/nuttx/include/aio.h
@@ -58,28 +58,20 @@
# undef CONFIG_LIBC_AIO
#endif
-/* Work queue support is required. In the flat, embedded build the low-
- * priority work queue is required so that the asynchronous I/O does not
- * interfere with high priority driver operations. In the protected and
- * kernel mode builds, user-space work queue support is required. If these
- * pre-requisites are met, then asynchronous I/O support can be enabled with
- * CONFIG_LIBC_AIO
+/* Work queue support is required. The low-priority work queue is required
+ * so that the asynchronous I/O does not interfere with high priority driver
+ * operations. If this pre-requisite is met, then asynchronous I/O support
+ * can be enabled with CONFIG_LIBC_AIO
*/
#ifdef CONFIG_LIBC_AIO
#ifndef CONFIG_SCHED_WORKQUEUE
# error Asynchronous I/O requires CONFIG_SCHED_WORKQUEUE
-#else
-# if defined (CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)
-# ifndef CONFIG_SCHED_USRWORK
-# error User-space asynchronous I/O requires CONFIG_SCHED_USRWORK
-# endif
-# else
-# ifndef CONFIG_SCHED_LPWORK
-# error Flat-build asynchronous I/O requires CONFIG_SCHED_LPWORK
-# endif
-# endif
+#endif
+
+#ifndef CONFIG_SCHED_LPWORK
+# error Asynchronous I/O requires CONFIG_SCHED_LPWORK
#endif
/* Standard Definitions *****************************************************/