📄 dm_extr.h
字号:
/*************************************************************************/
/* */
/* Copyright (c) 1993-1998 Accelerated Technology, Inc. */
/* */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the */
/* subject matter of this material. All manufacturing, reproduction, */
/* use, and sales rights pertaining to this subject matter are governed */
/* by the license agreement. The recipient of this software implicitly */
/* accepts the terms of the license. */
/* */
/*************************************************************************/
/*************************************************************************/
/* */
/* FILE NAME VERSION */
/* */
/* dm_extr.h PLUS 1.3 */
/* */
/* COMPONENT */
/* */
/* DM - Dynamic Memory Management */
/* */
/* DESCRIPTION */
/* */
/* This file contains function prototypes of all functions */
/* accessible to other components. */
/* */
/* AUTHOR */
/* */
/* William E. Lamie, Accelerated Technology, Inc. */
/* */
/* DATA STRUCTURES */
/* */
/* None */
/* */
/* FUNCTIONS */
/* */
/* None */
/* */
/* DEPENDENCIES */
/* */
/* dm_defs.h Dynamic Management constants */
/* */
/* HISTORY */
/* */
/* NAME DATE REMARKS */
/* */
/* W. Lamie 03-01-1993 Created initial version 1.0 */
/* D. Lamie 04-19-1993 Verified version 1.0 */
/* W. Lamie 03-01-1994 Moved include files outside of */
/* the file #ifndef to allow the */
/* use of actual data structures, */
/* modified function prototypes, */
/* resulting in version 1.1 */
/* R. Pfaff - */
/* D. Lamie 03-18-1994 Verified version 1.1 */
/* M.Q. Qian 04-17-1996 updated to version 1.2 */
/* M. Trippi 03-24-1998 Released version 1.3. */
/* */
/*************************************************************************/
#include "dm_defs.h" /* Include DM constants */
/* Check to see if the file has been included already. */
#ifndef DM_EXTR
#define DM_EXTR
/* Initialization functions. */
VOID DMI_Initialize(VOID);
/* Error checking functions. */
STATUS DMCE_Create_Memory_Pool(NU_MEMORY_POOL *pool_ptr, CHAR *name,
VOID *start_address, UNSIGNED pool_size,
UNSIGNED min_allocation, OPTION suspend_type);
STATUS DMCE_Delete_Memory_Pool(NU_MEMORY_POOL *pool_ptr);
STATUS DMCE_Allocate_Memory(NU_MEMORY_POOL *pool_ptr, VOID **return_pointer,
UNSIGNED size, UNSIGNED suspend);
STATUS DMCE_Deallocate_Memory(VOID *memory);
/* Core processing functions. */
STATUS DMC_Create_Memory_Pool(NU_MEMORY_POOL *pool_ptr, CHAR *name,
VOID *start_address, UNSIGNED pool_size,
UNSIGNED min_allocation, OPTION suspend_type);
STATUS DMC_Delete_Memory_Pool(NU_MEMORY_POOL *pool_ptr);
STATUS DMC_Allocate_Memory(NU_MEMORY_POOL *pool_ptr,
VOID **return_pointer, UNSIGNED size, UNSIGNED suspend);
STATUS DMC_Deallocate_Memory(VOID *memory);
/* Information retrieval functions. */
UNSIGNED DMC_Established_Memory_Pools(VOID);
STATUS DMC_Memory_Pool_Information(NU_MEMORY_POOL *pool_ptr,
CHAR *name, VOID **start_address, UNSIGNED *pool_size,
UNSIGNED *min_allocation, UNSIGNED *available,
OPTION *suspend_type, UNSIGNED *tasks_waiting,
NU_TASK **first_task);
UNSIGNED DMC_Memory_Pool_Pointers(NU_MEMORY_POOL **pointer_list,
UNSIGNED maximum_pointers);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -