From b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Wed, 10 Aug 2011 11:22:49 -0500 Subject: Allocate block system call stub Change-Id: Ief3476b5306bc231c9d3044b2736fcd195e840b1 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/243 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/include/sys/mm.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/include/sys/mm.h (limited to 'src/include/sys/mm.h') diff --git a/src/include/sys/mm.h b/src/include/sys/mm.h new file mode 100644 index 000000000..4719ff7df --- /dev/null +++ b/src/include/sys/mm.h @@ -0,0 +1,27 @@ +#ifndef __SYS_MM_H +#define __SYS_MM_H + +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/** @fn mm_alloc_block() + * @brief System call to allocate virtual memory block in the base segment + * + * @param[in] mq - Message queue to be associated with the block + * @param[in] va - Base virtual address of the block to be allocated + * @param[in] size - Requested virtual memory size of the block + * + * @return int - 0 for successful block allocation, non-zero otherwise + */ +int mm_alloc_block(msg_q_t mq,void* va,uint64_t size); + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3