]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/l4re/include/mem_alloc
update
[l4.git] / l4 / pkg / l4re / include / mem_alloc
index 7e6910b966ce6b1efc2e5fff119b2d33ed093869..81169a3e8bae1306ae4335805bbe7ebee343ad88 100644 (file)
@@ -81,6 +81,7 @@ public:
     Pinned       = 0x02, ///< Allocate pinned data space, if supported by the allocator
     Super_pages  = 0x04, ///< Allocate super pages, if supported by the allocator
   };
+
   /**
    * \brief Allocate anonymous memory.
    *
@@ -89,13 +90,17 @@ public:
    *               granularity).
    * \param mem   Object capability for the data space to be allocated.
    * \param flags Flags, see #Mem_alloc_flags, default none
+   * \param align Log2 alignment of dataspace if supported by allocator,
+   *              will be at least L4_PAGESHIFT,
+   *              with Super_pages flag set at least L4_SUPERPAGESHIFT,
+   *              default 0
    *
    * \return 0 on success, <0 on error
    *         - -#L4_ENOMEM
    *         - IPC errors
    */
   long alloc(unsigned long size, L4::Cap<Dataspace> mem,
-             unsigned long flags = 0) const throw();
+             unsigned long flags = 0, unsigned long align = 0) const throw();
   /**
    * \brief Free data space.
    *