summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/basesegment.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/kernel/basesegment.H')
-rw-r--r--src/include/kernel/basesegment.H9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/kernel/basesegment.H b/src/include/kernel/basesegment.H
index 8086c08b5..210a4100f 100644
--- a/src/include/kernel/basesegment.H
+++ b/src/include/kernel/basesegment.H
@@ -61,6 +61,15 @@ class BaseSegment : public Segment
/** Block-chain associated with this Segment. */
Block* iv_block;
+
+ /**
+ * @brief Allocates a block of virtual memory of the given size
+ * @param i_mq[in] - Message queue to be associated with the block
+ * @param i_va[in] - Base virtual address of the block to be allocated
+ * @param i_size[in] - Requested virtual memory size of the block
+ * @return int - 0 for successful block allocation, non-zero otherwise
+ */
+ int _mmAllocBlock(MessageQueue* i_mq,void* i_va,uint64_t i_size);
};
#endif
OpenPOWER on IntegriCloud