load average measurement implementation, accessable through

getloadavg() system call in the library.
This commit is contained in:
Ben Gras
2005-11-14 15:50:46 +00:00
parent aabef59faa
commit 87f2236ad2
7 changed files with 59 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ register message *m_ptr; /* pointer to request message */
src_phys = vir2phys(&kinfo);
break;
}
case GET_LOADINFO: {
length = sizeof(struct loadinfo);
src_phys = vir2phys(&kloadinfo);
break;
}
case GET_IMAGE: {
length = sizeof(struct boot_image) * NR_BOOT_PROCS;
src_phys = vir2phys(image);