[Disksim-users] ioreq_event's opid field

xiaoyu yao xyao at cse.unl.edu
Fri Jan 27 14:26:46 EST 2006


Hi, Shahrukh

It is used for identify a logical request during the request mapping at RAID
(or logorg) level.
Check disksim_logorg.c and you will find that for each logorg, the opid is
maintained like a sequence no. 

 int logorg_maprequest (logorg **logorgs, int numlogorgs, ioreq_event *curr)
{
......
curr->opid = logorgs[logorgno]->opid;
......
 logorgs[logorgno]->opid++;

}

Xiaoyu


-----Original Message-----
From: disksim-users-bounces at ece.cmu.edu
[mailto:disksim-users-bounces at ece.cmu.edu] On Behalf Of Shahrukh Rohinton
Tarapore
Sent: Friday, January 27, 2006 1:14 PM
To: disksim-users at ece.cmu.edu
Subject: [Disksim-users] ioreq_event's opid field

Can someone explain the use of opid in the ioreq_event structure?  
Almost all of the source code sets it to zero and the documentation says to
set it to zero when dealing with iotraces.  My intention would be to use it
as a unique identifier for requests. I want to make sure assigning this
variable arbitrary values won't kill the simulator.

-- shahrukh
_______________________________________________
Disksim-users mailing list
Disksim-users at ece.cmu.edu
https://sos.ece.cmu.edu/mailman/listinfo/disksim-users





More information about the Disksim-users mailing list