comparison gsm-fw/gpf/osl/os_mem_fl.c @ 398:2dc9f34e3036

os_mem_fl.c: os_CreateMemoryPool() started
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 13 Jun 2014 22:12:05 +0000
parents f5b9c6d63718
children d26a9e3de626
comparison
equal deleted inserted replaced
397:f5b9c6d63718 398:2dc9f34e3036
364 os_InitPartitionCheck(npool); 364 os_InitPartitionCheck(npool);
365 if (sts == NU_SUCCESS) 365 if (sts == NU_SUCCESS)
366 NU_Release_Semaphore(&MemSemCB); 366 NU_Release_Semaphore(&MemSemCB);
367 return(OS_OK); 367 return(OS_OK);
368 } 368 }
369
370 GLOBAL LONG
371 os_CreatePartitionPool_fixed_pool_size(OS_HANDLE TaskHandle, char *GroupName,
372 void *Addr, USHORT PoolSize,
373 ULONG PartSize, OS_HANDLE *GroupHandle,
374 ULONG *NumCreated)
375 {
376 USHORT num;
377
378 num = PoolSize / (PartSize + PT_CHKOVERHEAD + PT_OVERHEAD);
379 *NumCreated = num;
380 return os_CreatePartitionPool(TaskHandle, GroupName, Addr, num,
381 PartSize, GroupHandle);
382 }
383
384 GLOBAL LONG
385 os_CreateMemoryPool(OS_HANDLE TaskHandle, char *Name, void *Addr,
386 ULONG PoolSize, OS_HANDLE *PoolHandle)
387 {
388 STATUS sts;
389
390 sts = NU_Obtain_Semaphore(&MemSemCB, NU_SUSPEND);
391
392
393 }