[solved]-Write Linux C Language Add Static System Call Sysmemstats Report Memory Management Statist Q39084971
Write in linux C language:
Add a Static System Call (sys_memstats) to report on memorymanagement statistics You are to add a static system call to yourkernel which will collect and return to user space callers thefollowing memory management statistics:
1. the current number of free pages (over all memory zones);
2. the current number of pages used by slab allocator (over allmemory zones);
3. the current number of pages in the active list (over allmemory zones);
4. the current number of pages in the inactive list (over allmemory zones);
5. the current number of pages in the active list whosereference bits are set (over all memory zones);
6. the current number of pages in the inactive list whosereference bits are set (over all memory zones);
7. the cumulative number of pages moved from the active list tothe inactive list (since the last machine boot);
8. the cumulative number of pages evicted from the inactive list(since the last machine boot);
Expert Answer
Answer to Write in linux C language: Add a Static System Call (sys_memstats) to report on memory management statistics You are to … . . .
OR

