comparison gsm-fw/gpf/osl/os_mem_fl.c @ 375:1319bd1d5ac3

os_mem_fl.c: os_GetPrimpoolCB() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 09 Jun 2014 04:10:07 +0000
parents 3efb28578dad
children 754e72d134a0
comparison
equal deleted inserted replaced
374:3efb28578dad 375:1319bd1d5ac3
173 for (k = 0; k < i; k++) 173 for (k = 0; k < i; k++)
174 if (NU_Deallocate_Partition(Buffer[k]) != NU_SUCCESS) 174 if (NU_Deallocate_Partition(Buffer[k]) != NU_SUCCESS)
175 break; 175 break;
176 NU_Deallocate_Memory(Buffer); 176 NU_Deallocate_Memory(Buffer);
177 } 177 }
178
179 GLOBAL const ULONG *
180 os_GetPrimpoolCB(int grp, int id)
181 {
182 T_OS_PART_POOL *pool;
183 int i;
184
185 pool = PartGrpTable[grp].grp_head;
186 if (!pool)
187 return(0);
188 if (id < 0)
189 return(0);
190 for (i = 0; i < id; i++) {
191 pool = pool->next;
192 if (!pool)
193 return(0);
194 }
195 return (const ULONG *) &pool->pcb;
196 }