⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fns_heap.h

📁 用于嵌入式系统的TCP/IP协议栈及若干服务
💻 H
字号:
/**            Copyright (c) 1998-2001 by NETsilicon Inc.**  This software is copyrighted by and is the sole property of*  NETsilicon.  All rights, title, ownership, or other interests*  in the software remain the property of NETsilicon.  This*  software may only be used in accordance with the corresponding*  license agreement.  Any unauthorized use, duplication, transmission,*  distribution, or disclosure of this software is expressly forbidden.**  This Copyright notice may not be removed or modified without prior*  written consent of NETsilicon.**  NETsilicon, reserves the right to modify this software*  without notice.**  NETsilicon*  411 Waverley Oaks Road                  USA 781.647.1234*  Suite 227                               http://www.netsilicon.com*  Waltham, MA 02452                       AmericaSales@netsilicon.com***************************************************************************  $Name: Fusion 6.52 Fusion 6.51 $*  $Date: 2001/09/20 10:19:18 $*  $Source: M:/psisrc/stack/incl/rcs/fns_heap.h $*  $Revision: 1.6 $***************************************************************************                         - Revision Log -                              * Who   When        Why** FND   10/09/01    OS_MALLOC and OS_FREE prototypes must be conditional.***************************************************************************  File Description:  Heap / Memory Allocation defines and prototypes***************************************************************************/#ifndef _FNS_HEAP_#define _FNS_HEAP_/* * Prototypes (heap.c) */import  void *  h_alloc(i32 len, int * errp, boolean canblock);import  void *  h_calloc(i32 len, int * errp, boolean canblock);import  void    h_free(void * ip);import  void    h_init(i32 * hptr, u32 hsize);import  int     h_tailtrim(void * headp,  void * tailp);/* * Memory Types */#define FNS_STATIC_HEAP     1#define FNS_SESSION_HEAP    2#define FNS_PACKET_HEAP     3#ifndef OS_MALLOCvoid* OS_MALLOC(i32 S, i32 T);#endif#ifndef OS_FREEvoid OS_FREE(void* P);#endif#ifdef OS_MEM_TRIMint OS_MEM_TRIM(void* S, void* E);#endif#ifdef os_hinitvoid os_hinit(u32* size, i32** ptr);#endif#ifdef USE_FUSION_HEAP#define OS_MALLOC(S,T)      h_malloc(S)#define OS_FREE(P)          h_mfree(P)#define OS_MEM_TRIM(S,E)    h_mttrim(S,E)#define OS_MALLOC_INIT      nc_hinit()#define OS_IS_MEM_LOW       h_mlow()#define OS_HEAP_SPACE       h_avail#ifndef H_LOW_WATER#define H_LOW_WATER         2048#endifextern  u32 FNS_HEAP_SPACE;void*   h_malloc(i32 S);void    h_mfree(void* P);int     h_mttrim(void* S, void* E);void    nc_hinit(void);boolean h_mlow(void);#endif /* USE_FUSION_HEAP */#endif /*_FNS_HEAP_*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -