* allocate a new request_t struct and fill in necessary field * @return */
| 75 | * @return |
| 76 | */ |
| 77 | static inline request_t *new_request(void) { |
| 78 | request_t *req = my_malloc(request_t); |
| 79 | memset(req, 0, sizeof(request_t)); |
| 80 | req->obj_size = 1; |
| 81 | req->op = OP_NOP; |
| 82 | req->valid = true; |
| 83 | req->obj_id = 0; |
| 84 | req->clock_time = 0; |
| 85 | req->hv = 0; |
| 86 | req->next_access_vtime = -2; |
| 87 | req->ttl = 0; |
| 88 | return req; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * copy the req_src to req_dest |
no outgoing calls