Lines Matching refs:sysinfo
139 struct l_sysinfo sysinfo; in linux_sysinfo() local
143 bzero(&sysinfo, sizeof(sysinfo)); in linux_sysinfo()
147 sysinfo.uptime = ts.tv_sec; in linux_sysinfo()
151 sysinfo.loads[i] = averunnable.ldavg[i] * in linux_sysinfo()
154 sysinfo.totalram = physmem * PAGE_SIZE; in linux_sysinfo()
155 sysinfo.freeram = (u_long)vm_free_count() * PAGE_SIZE; in linux_sysinfo()
163 sysinfo.sharedram = 0; in linux_sysinfo()
164 sysinfo.bufferram = 0; in linux_sysinfo()
167 sysinfo.totalswap = i * PAGE_SIZE; in linux_sysinfo()
168 sysinfo.freeswap = (i - j) * PAGE_SIZE; in linux_sysinfo()
170 sysinfo.procs = nprocs; in linux_sysinfo()
176 sysinfo.totalhigh = 0; in linux_sysinfo()
177 sysinfo.freehigh = 0; in linux_sysinfo()
179 sysinfo.mem_unit = 1; in linux_sysinfo()
181 return (copyout(&sysinfo, args->info, sizeof(sysinfo))); in linux_sysinfo()