You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int
countfree()
{
uint64 sz0 = (uint64)sbrk(0);
struct sysinfo info;
int n = 0;
while(1){
if((uint64)sbrk(PGSIZE) == 0xffffffffffffffff){ /* loop forever if there is no more mem originally?/
break;
}
n += PGSIZE; / undercount one if there is only one page left originally ?*/
}
}
The text was updated successfully, but these errors were encountered:
int
countfree()
{
uint64 sz0 = (uint64)sbrk(0);
struct sysinfo info;
int n = 0;
while(1){
if((uint64)sbrk(PGSIZE) == 0xffffffffffffffff){ /* loop forever if there is no more mem originally?/
break;
}
n += PGSIZE; / undercount one if there is only one page left originally ?*/
}
}
The text was updated successfully, but these errors were encountered: