search for: ret_str

Displaying 2 results from an estimated 2 matches for "ret_str".

Did you mean: set_str
2011 Jun 21
13
VM disk I/O limit patch
...block_io(blkif, &req, pending_req,&last_done_nr_sects); break; case BLKIF_OP_PACKET: DPRINTK("error: block operation BLKIF_OP_PACKET not implemented\n"); @@ -412,9 +461,29 @@ handle_request: return more_to_do; } +static char* operation2str(int operation) +{ + char* ret_str = NULL; + switch (operation) { + case BLKIF_OP_READ: + ret_str = "READ"; + break; + case BLKIF_OP_WRITE: + ret_str = "WRITE"; + break; + case BLKIF_OP_WRITE_BARRIER: + ret_str = "WRITE_BARRIER"; + break; + default: + ret_str = "0"; + } + return ret_str...
2011 Jun 21
13
VM disk I/O limit patch
...block_io(blkif, &req, pending_req,&last_done_nr_sects); break; case BLKIF_OP_PACKET: DPRINTK("error: block operation BLKIF_OP_PACKET not implemented\n"); @@ -412,9 +461,29 @@ handle_request: return more_to_do; } +static char* operation2str(int operation) +{ + char* ret_str = NULL; + switch (operation) { + case BLKIF_OP_READ: + ret_str = "READ"; + break; + case BLKIF_OP_WRITE: + ret_str = "WRITE"; + break; + case BLKIF_OP_WRITE_BARRIER: + ret_str = "WRITE_BARRIER"; + break; + default: + ret_str = "0"; + } + return ret_str...