Question: need a code for this The goal of the project is simple: to add a system call to xv6. Your system call, getreadcount(), simply returns

need a code for this

The goal of the project is simple: to add a system call to xv6. Your system call, getreadcount(), simply returns how many times that the read() system call has been called by user processes since the time that the kernel was booted.

Your new system call should look have the following return codes and parameters: int getreadcount(void) Your system call returns the value of a counter (perhaps called readcount or something like that) which is incremented every time any process calls the read() system call. Thats it!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!