summaryrefslogtreecommitdiff
path: root/mmap-internal.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-04-25 10:12:19 +1000
committerChris Johns <chrisj@rtems.org>2012-04-25 10:12:19 +1000
commit673b40c95705127635af12bda15694fd6ab5a96b (patch)
tree5c243823cf495ba3702773f94b275a442ac218de /mmap-internal.h
Import the current project to git.
Diffstat (limited to 'mmap-internal.h')
-rw-r--r--mmap-internal.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/mmap-internal.h b/mmap-internal.h
new file mode 100644
index 0000000..ec36e3a
--- /dev/null
+++ b/mmap-internal.h
@@ -0,0 +1,37 @@
+/*
+ * mmap() - POSIX 1003.1b 6.3.1 - map pages of memory
+ *
+ * COPYRIGHT (c) 2010.
+ * Chris Johns (chrisj@rtems.org)
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifndef MMAP_INTERNAL_H
+
+#include <stdint.h>
+
+#include <rtems.h>
+#include <rtems/chain.h>
+
+/**
+ * Every mmap'ed region has a mapping.
+ */
+typedef struct mmap_mappings_s {
+ rtems_chain_node node; /**< The mapping chain's node */
+ void* addr; /**< The address of the mapped memory */
+ size_t len; /**< The length of memory mapped */
+ int flags; /**< The mapping flags */
+} mmap_mapping;
+
+extern rtems_chain_control mmap_mappings;
+
+bool mmap_mappings_lock_obtain( void );
+bool mmap_mappings_lock_release( void );
+
+
+#endif