diff options
| author | Matthew Barth <msbarth@us.ibm.com> | 2011-08-10 11:22:49 -0500 |
|---|---|---|
| committer | MATTHEW S. BARTH <msbarth@us.ibm.com> | 2011-08-10 17:30:34 -0500 |
| commit | b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563 (patch) | |
| tree | e15e50c0e9a80096c4a26db97d7c8686223a80d3 /src/include/sys/mm.h | |
| parent | 2a7a99c1e088b8b87e4b019d24550c047fb86e0d (diff) | |
| download | blackbird-hostboot-b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563.tar.gz blackbird-hostboot-b977bf9b78b1d7d57cefa3f8a2b7ebd0b7de4563.zip | |
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 <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/sys/mm.h')
| -rw-r--r-- | src/include/sys/mm.h | 27 |
1 files changed, 27 insertions, 0 deletions
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 <stdint.h> +#include <sys/msg.h> + +#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 |

