~sheosi/helenos/lua

« back to all changes in this revision

Viewing changes to uspace/srv/devmap/devmap.c

Merged the actual head

Show diffs side-by-side

added added

removed removed

Lines of Context:
395
395
        /*
396
396
         * Get driver name
397
397
         */
398
 
        int rc = async_data_string_receive(&driver->name, DEVMAP_NAME_MAXLEN);
 
398
        int rc = async_data_write_accept((void **) &driver->name, true, 0,
 
399
            DEVMAP_NAME_MAXLEN, 0, NULL);
399
400
        if (rc != EOK) {
400
401
                free(driver);
401
402
                ipc_answer_0(iid, rc);
509
510
        
510
511
        /* Get fqdn */
511
512
        char *fqdn;
512
 
        int rc = async_data_string_receive(&fqdn, DEVMAP_NAME_MAXLEN);
 
513
        int rc = async_data_write_accept((void **) &fqdn, true, 0,
 
514
            DEVMAP_NAME_MAXLEN, 0, NULL);
513
515
        if (rc != EOK) {
514
516
                free(device);
515
517
                ipc_answer_0(iid, rc);
621
623
        char *fqdn;
622
624
        
623
625
        /* Get fqdn */
624
 
        int rc = async_data_string_receive(&fqdn, DEVMAP_NAME_MAXLEN);
 
626
        int rc = async_data_write_accept((void **) &fqdn, true, 0,
 
627
            DEVMAP_NAME_MAXLEN, 0, NULL);
625
628
        if (rc != EOK) {
626
629
                ipc_answer_0(iid, rc);
627
630
                return;
682
685
        char *name;
683
686
        
684
687
        /* Get device name */
685
 
        int rc = async_data_string_receive(&name, DEVMAP_NAME_MAXLEN);
 
688
        int rc = async_data_write_accept((void **) &name, true, 0,
 
689
            DEVMAP_NAME_MAXLEN, 0, NULL);
686
690
        if (rc != EOK) {
687
691
                ipc_answer_0(iid, rc);
688
692
                return;