Rev 2660 | Rev 2678 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2660 | Rev 2676 | ||
---|---|---|---|
Line 200... | Line 200... | ||
200 | } |
200 | } |
201 | 201 | ||
202 | /* |
202 | /* |
203 | * Get driver name |
203 | * Get driver name |
204 | */ |
204 | */ |
205 | if (!ipc_data_write_receive(&callid, NULL, &name_size)) { |
205 | if (!ipc_data_write_receive(&callid, &name_size)) { |
206 | printf("Unexpected request.\n"); |
206 | printf("Unexpected request.\n"); |
207 | free(driver); |
207 | free(driver); |
208 | ipc_answer_0(callid, EREFUSED); |
208 | ipc_answer_0(callid, EREFUSED); |
209 | ipc_answer_0(iid, EREFUSED); |
209 | ipc_answer_0(iid, EREFUSED); |
210 | return; |
210 | return; |
Line 366... | Line 366... | ||
366 | ipc_answer_0(iid, ENOMEM); |
366 | ipc_answer_0(iid, ENOMEM); |
367 | return; |
367 | return; |
368 | } |
368 | } |
369 | 369 | ||
370 | /* Get device name */ |
370 | /* Get device name */ |
371 | if (!ipc_data_write_receive(&callid, NULL, &size)) { |
371 | if (!ipc_data_write_receive(&callid, &size)) { |
372 | free(device); |
372 | free(device); |
373 | printf("Cannot read device name.\n"); |
373 | printf("Cannot read device name.\n"); |
374 | ipc_answer_0(iid, EREFUSED); |
374 | ipc_answer_0(iid, EREFUSED); |
375 | return; |
375 | return; |
376 | } |
376 | } |
Line 487... | Line 487... | ||
487 | 487 | ||
488 | /* |
488 | /* |
489 | * Wait for incoming message with device name (but do not |
489 | * Wait for incoming message with device name (but do not |
490 | * read the name itself until the buffer is allocated). |
490 | * read the name itself until the buffer is allocated). |
491 | */ |
491 | */ |
492 | if (!ipc_data_write_receive(&callid, NULL, &name_size)) { |
492 | if (!ipc_data_write_receive(&callid, &name_size)) { |
493 | ipc_answer_0(callid, EREFUSED); |
493 | ipc_answer_0(callid, EREFUSED); |
494 | ipc_answer_0(iid, EREFUSED); |
494 | ipc_answer_0(iid, EREFUSED); |
495 | return; |
495 | return; |
496 | } |
496 | } |
497 | 497 |