|
|
@ -17,7 +17,7 @@ struct sandbox_request {
|
|
|
|
struct module * module;
|
|
|
|
struct module * module;
|
|
|
|
char * arguments;
|
|
|
|
char * arguments;
|
|
|
|
int socket_descriptor;
|
|
|
|
int socket_descriptor;
|
|
|
|
struct sockaddr *socket_address;
|
|
|
|
struct sockaddr socket_address;
|
|
|
|
uint64_t request_arrival_timestamp; /* cycles */
|
|
|
|
uint64_t request_arrival_timestamp; /* cycles */
|
|
|
|
uint64_t absolute_deadline; /* cycles */
|
|
|
|
uint64_t absolute_deadline; /* cycles */
|
|
|
|
|
|
|
|
|
|
|
@ -77,7 +77,7 @@ sandbox_request_allocate(struct module *module, char *arguments, int socket_desc
|
|
|
|
sandbox_request->module = module;
|
|
|
|
sandbox_request->module = module;
|
|
|
|
sandbox_request->arguments = arguments;
|
|
|
|
sandbox_request->arguments = arguments;
|
|
|
|
sandbox_request->socket_descriptor = socket_descriptor;
|
|
|
|
sandbox_request->socket_descriptor = socket_descriptor;
|
|
|
|
sandbox_request->socket_address = (struct sockaddr *)socket_address;
|
|
|
|
memcpy(&sandbox_request->socket_address, socket_address, sizeof(struct sockaddr));
|
|
|
|
sandbox_request->request_arrival_timestamp = request_arrival_timestamp;
|
|
|
|
sandbox_request->request_arrival_timestamp = request_arrival_timestamp;
|
|
|
|
sandbox_request->absolute_deadline = request_arrival_timestamp + module->relative_deadline;
|
|
|
|
sandbox_request->absolute_deadline = request_arrival_timestamp + module->relative_deadline;
|
|
|
|
|
|
|
|
|
|
|
|