• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/barrelfish/

Lines Matching refs:state

68     struct interrupt_handler_state *state = arg;
73 err = lmp_endpoint_recv(state->idcep, &buf.buf, NULL);
79 if (!state->reloc_handler) {
84 state->reloc_handler(state->reloc_handler_arg);
88 state->handler(state->handler_arg);
95 err = lmp_endpoint_register(state->idcep, barrelfish_interrupt_waitset, cl);
117 /* alloc state */
118 struct interrupt_handler_state *state;
119 state = malloc(sizeof(struct interrupt_handler_state));
120 assert(state != NULL);
122 state->handler = handler;
123 state->handler_arg = handler_arg;
129 err = endpoint_create(LMP_RECV_LENGTH, &epcap, &state->idcep);
131 free(state);
144 .arg = state,
146 err = lmp_endpoint_register(state->idcep, barrelfish_interrupt_waitset, cl);
148 lmp_endpoint_free(state->idcep);
150 free(state);
174 /* alloc state */
175 struct interrupt_handler_state *state;
176 state = malloc(sizeof(struct interrupt_handler_state));
177 assert(state != NULL);
179 state->handler = handler;
180 state->handler_arg = handler_arg;
181 state->reloc_handler = reloc_handler;
182 state->reloc_handler_arg = reloc_handler_arg;
188 err = endpoint_create(LMP_RECV_LENGTH, &epcap, &state->idcep);
190 free(state);
197 .arg = state,
199 err = lmp_endpoint_register(state->idcep, barrelfish_interrupt_waitset, cl);
201 lmp_endpoint_free(state->idcep);
203 free(state);
233 /* alloc state */
234 struct interrupt_handler_state *state;
235 state = malloc(sizeof(struct interrupt_handler_state));
236 assert(state != NULL);
238 state->handler = handler;
239 state->handler_arg = handler_arg;
240 state->reloc_handler = reloc_handler;
241 state->reloc_handler_arg = reloc_handler_arg;
248 free(state);
256 err = endpoint_create(LMP_RECV_LENGTH, &epcap, &state->idcep);
258 free(state);
277 .arg = state,
279 err = lmp_endpoint_register(state->idcep, barrelfish_interrupt_waitset, cl);
281 lmp_endpoint_free(state->idcep);
283 free(state);