| 43 | |
| 44 | |
| 45 | void empty_tmcb_list(struct tmcb_head_list *head) |
| 46 | { |
| 47 | struct tm_callback *cbp, *cbp_tmp; |
| 48 | |
| 49 | for( cbp=head->first; cbp ; ) { |
| 50 | cbp_tmp = cbp; |
| 51 | cbp = cbp->next; |
| 52 | if (cbp_tmp->release) |
| 53 | cbp_tmp->release(cbp_tmp->param); |
| 54 | shm_free( cbp_tmp ); |
| 55 | } |
| 56 | head->first = 0 ; |
| 57 | head->reg_types = 0; |
| 58 | } |
| 59 | |
| 60 | static struct tmcb_head_list *new_tmcb_list(void) |
| 61 | { |
no test coverage detected