Changeset 215e375 in mainline for uspace/srv


Ignore:
Timestamp:
2007-12-31T17:23:20Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f57f8ea
Parents:
27d293a
Message:

The IPC_M_SHARE_* and IPC_M_DATA_* calls pass through 3 stages. Rename the send,
receive and deliver wrappers to names ending with 'start', 'receive' and
'finalize', respectively. This should make it clearer for dummies.

Location:
uspace/srv
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/console/console.c

    r27d293a r215e375  
    538538            PROTO_READ | PROTO_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0);
    539539        if (!interbuffer) {
    540                 if (ipc_share_out_send(fb_info.phone, interbuffer,
     540                if (ipc_share_out_start(fb_info.phone, interbuffer,
    541541                    AS_AREA_READ) != EOK) {
    542542                        munmap(interbuffer,
  • uspace/srv/console/gcons.c

    r27d293a r215e375  
    326326        if (rc)
    327327                goto exit;
    328         rc = ipc_share_out_send(fbphone, shm, PROTO_READ);
     328        rc = ipc_share_out_start(fbphone, shm, PROTO_READ);
    329329        if (rc)
    330330                goto drop;
     
    387387        if (rc)
    388388                goto exit;
    389         rc = ipc_share_out_send(fbphone, shm, PROTO_READ);
     389        rc = ipc_share_out_start(fbphone, shm, PROTO_READ);
    390390        if (rc)
    391391                goto drop;
  • uspace/srv/devmap/devmap.c

    r27d293a r215e375  
    234234         * Send confirmation to sender and get data into buffer.
    235235         */
    236         if (EOK != ipc_data_write_deliver(callid, driver->name, name_size)) {
     236        if (EOK != ipc_data_write_finalize(callid, driver->name, name_size)) {
    237237                printf("Cannot read driver name.\n");
    238238                free(driver->name);
     
    395395        }
    396396       
    397         ipc_data_write_deliver(callid, device->name, size);
     397        ipc_data_write_finalize(callid, device->name, size);
    398398        device->name[size] = 0;
    399399
     
    514514         * Send confirmation to sender and get data into buffer.
    515515         */
    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))) {
    517518                ipc_answer_0(iid, EREFUSED);
    518519                return;
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    r27d293a r215e375  
    308308
    309309        size_t bytes = max(0, min(dentry->size - pos, len));
    310         (void) ipc_data_read_deliver(callid, dentry->data + pos, bytes);
     310        (void) ipc_data_read_finalize(callid, dentry->data + pos, bytes);
    311311
    312312        /*
     
    350350        if (pos + len <= dentry->size) {
    351351                /* The file size is not changing. */
    352                 (void) ipc_data_write_deliver(callid, dentry->data + pos, len);
     352                (void) ipc_data_write_finalize(callid, dentry->data + pos, len);
    353353                ipc_answer_1(rid, EOK, len);
    354354                return;
     
    370370        dentry->size += delta;
    371371        dentry->data = newdata;
    372         (void) ipc_data_write_deliver(callid, dentry->data + pos, len);
     372        (void) ipc_data_write_finalize(callid, dentry->data + pos, len);
    373373        ipc_answer_1(rid, EOK, len);
    374374}
  • uspace/srv/rd/rd.c

    r27d293a r215e375  
    111111                         * block.
    112112                         */
    113                         (void) ipc_share_out_deliver(callid, fs_va);
     113                        (void) ipc_share_out_finalize(callid, fs_va);
    114114                } else {
    115115                        /*
  • uspace/srv/vfs/vfs_mount.c

    r27d293a r215e375  
    107107         */
    108108        char fs_name[FS_NAME_MAXLEN + 1];
    109         (void) ipc_data_write_deliver(callid, fs_name, size);
     109        (void) ipc_data_write_finalize(callid, fs_name, size);
    110110        fs_name[size] = '\0';
    111111       
     
    151151         * Deliver the mount point.
    152152         */
    153         (void) ipc_data_write_deliver(callid, buf, size);
     153        (void) ipc_data_write_finalize(callid, buf, size);
    154154
    155155        /*
  • uspace/srv/vfs/vfs_open.c

    r27d293a r215e375  
    8383
    8484        int rc;
    85         if ((rc = ipc_data_write_deliver(callid, path, size))) {
     85        if ((rc = ipc_data_write_finalize(callid, path, size))) {
    8686                ipc_answer_0(rid, rc);
    8787                free(path);
  • uspace/srv/vfs/vfs_register.c

    r27d293a r215e375  
    206206        futex_initialize(&fs_info->phone_futex, 1);
    207207               
    208         rc = ipc_data_write_deliver(callid, &fs_info->vfs_info, size);
     208        rc = ipc_data_write_finalize(callid, &fs_info->vfs_info, size);
    209209        if (rc != EOK) {
    210210                dprintf("Failed to deliver the VFS info into our AS, rc=%d.\n",
     
    300300         * Commit to read-only sharing the PLB with the client.
    301301         */
    302         (void) ipc_share_in_deliver(callid, plb,
     302        (void) ipc_share_in_finalize(callid, plb,
    303303            AS_AREA_READ | AS_AREA_CACHEABLE);
    304304
Note: See TracChangeset for help on using the changeset viewer.