Displaying 1 result from an estimated 1 matches for "buffer_gref".
2012 May 07
14
Little help with blk ring
...00.
I go ahead and create a REQUEST with this data:
ring_req = RING_GET_REQUEST(priv,priv->req_prod_pvt);
ring_req->id = 9;
ring_req->nr_segments=1;
ring_req->operation = BLKIF_OP_READ;
ring_req->sector_number = (int)op->lba; //sector to be read
ring_req->seg[0].gref = (bi->buffer_gref); //this should be get_free_gref();
ring_req->seg[0].first_sect = 0;//op->lba;
ring_req->seg[0].last_sect = 7;//op->lba + op->count;
RING_PUSH_REQUESTS_AND_CHECK_NOTIFY((priv),notify);  //return notify=0
if(notify){
		dprintf(1,"Start notify procedure\n");
		evtchn_send_t...