Subversion Repositories HelenOS

Rev

Rev 2676 | Rev 3080 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2676 Rev 2678
Line 231... Line 231...
231
    }  
231
    }  
232
 
232
 
233
    /*
233
    /*
234
     * Send confirmation to sender and get data into buffer.
234
     * Send confirmation to sender and get data into buffer.
235
     */
235
     */
236
    if (EOK != ipc_data_write_deliver(callid, driver->name, name_size)) {
236
    if (EOK != ipc_data_write_finalize(callid, driver->name, name_size)) {
237
        printf("Cannot read driver name.\n");
237
        printf("Cannot read driver name.\n");
238
        free(driver->name);
238
        free(driver->name);
239
        free(driver);
239
        free(driver);
240
        ipc_answer_0(iid, EREFUSED);
240
        ipc_answer_0(iid, EREFUSED);
241
        return;
241
        return;
Line 392... Line 392...
392
        ipc_answer_0(callid, ENOMEM);
392
        ipc_answer_0(callid, ENOMEM);
393
        ipc_answer_0(iid, EREFUSED);
393
        ipc_answer_0(iid, EREFUSED);
394
        return;
394
        return;
395
    }
395
    }
396
   
396
   
397
    ipc_data_write_deliver(callid, device->name, size);
397
    ipc_data_write_finalize(callid, device->name, size);
398
    device->name[size] = 0;
398
    device->name[size] = 0;
399
 
399
 
400
    list_initialize(&(device->devices));
400
    list_initialize(&(device->devices));
401
    list_initialize(&(device->driver_devices));
401
    list_initialize(&(device->driver_devices));
402
 
402
 
Line 511... Line 511...
511
    }  
511
    }  
512
 
512
 
513
    /*
513
    /*
514
     * Send confirmation to sender and get data into buffer.
514
     * Send confirmation to sender and get data into buffer.
515
     */
515
     */
516
    if (EOK != (retval = ipc_data_write_deliver(callid, name, name_size))) {
516
    if (EOK != (retval = ipc_data_write_finalize(callid, name,
-
 
517
        name_size))) {
517
        ipc_answer_0(iid, EREFUSED);
518
        ipc_answer_0(iid, EREFUSED);
518
        return;
519
        return;
519
    }
520
    }
520
 
521
 
521
    /*
522
    /*