lfok/unix-project — Issue #6: Q2-4
Author: lfok
Created: 2011-12-01 01:41:32+00:00
State: open

Make a branch in your repository based on the vanilla kernel and named linux-2.6.23.17-slob_syscalls.

Within this new branch, devise a method to keep track of all of the memory claimed by the SLOB allocator for small allocations (i.e., every time the if(!b) beginning on line 331 of slob.c is entered) along with the amount of memory that was not served in an allocation request (i.e. the amount of memory contained in all blocks on the free list). Write separate system calls at the bottom of mm/slob.c to return each of these amounts in bytes and as an unsigned int, respectively called sys_get_slob_amt_claimed() and one called sys_get_slob_amt_free().