2 #include "wilc_oswrapper.h"
9 void *WILC_MemoryAlloc(WILC_Uint32 u32Size
, tstrWILC_MemoryAttrs
*strAttrs
,
10 WILC_Char
*pcFileName
, WILC_Uint32 u32LineNo
)
13 return kmalloc(u32Size
, GFP_ATOMIC
);
24 void *WILC_MemoryCalloc(WILC_Uint32 u32Size
, tstrWILC_MemoryAttrs
*strAttrs
,
25 WILC_Char
*pcFileName
, WILC_Uint32 u32LineNo
)
27 return kcalloc(u32Size
, 1, GFP_KERNEL
);
35 void *WILC_MemoryRealloc(void *pvOldBlock
, WILC_Uint32 u32NewSize
,
36 tstrWILC_MemoryAttrs
*strAttrs
, WILC_Char
*pcFileName
, WILC_Uint32 u32LineNo
)
38 if (u32NewSize
== 0) {
41 } else if (pvOldBlock
== WILC_NULL
) {
42 return kmalloc(u32NewSize
, GFP_KERNEL
);
44 return krealloc(pvOldBlock
, u32NewSize
, GFP_KERNEL
);
54 void WILC_MemoryFree(const void *pvBlock
, tstrWILC_MemoryAttrs
*strAttrs
,
55 WILC_Char
*pcFileName
, WILC_Uint32 u32LineNo
)
This page took 0.068696 seconds and 5 git commands to generate.