Allocate a 'struct command_queue'
| 731 | |
| 732 | // Allocate a 'struct command_queue' |
| 733 | struct command_queue * __visible |
| 734 | serialqueue_alloc_commandqueue(void) |
| 735 | { |
| 736 | struct command_queue *cq = malloc(sizeof(*cq)); |
| 737 | memset(cq, 0, sizeof(*cq)); |
| 738 | list_init(&cq->ready_queue); |
| 739 | list_init(&cq->upcoming_queue); |
| 740 | return cq; |
| 741 | } |
| 742 | |
| 743 | // Free a 'struct command_queue' |
| 744 | void __visible |
no test coverage detected