Changeset 36d852c in mainline for uspace/srv/devmap/devmap.c


Ignore:
Timestamp:
2007-12-23T19:45:30Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
654b7db
Parents:
5c786d1
Message:

Rename IPC_M_DATA_SEND to IPC_M_DATA_WRITE. Now, when we also add
IPC_M_DATA_READ, it will not clash and cause confusion with userspace wrappers
such as ipc_data_receive(). Rename the forementioned wrappers to
ipc_data_write_send(), ipc_data_write_receive() and ipc_data_write_deliver().

File:
1 edited

Legend:

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

    r5c786d1 r36d852c  
    203203         * Get driver name
    204204         */
    205         if (!ipc_data_receive(&callid, NULL, &name_size)) {
     205        if (!ipc_data_write_receive(&callid, NULL, &name_size)) {
    206206                printf("Unexpected request.\n");
    207207                free(driver);
     
    234234         * Send confirmation to sender and get data into buffer.
    235235         */
    236         if (EOK != ipc_data_deliver(callid, driver->name, name_size)) {
     236        if (EOK != ipc_data_write_deliver(callid, driver->name, name_size)) {
    237237                printf("Cannot read driver name.\n");
    238238                free(driver->name);
     
    369369       
    370370        /* Get device name */
    371         if (!ipc_data_receive(&callid, NULL, &size)) {
     371        if (!ipc_data_write_receive(&callid, NULL, &size)) {
    372372                free(device);
    373373                printf("Cannot read device name.\n");
     
    395395        }
    396396       
    397         ipc_data_deliver(callid, device->name, size);
     397        ipc_data_write_deliver(callid, device->name, size);
    398398        device->name[size] = 0;
    399399
     
    490490         * read the name itself until the buffer is allocated).
    491491         */
    492         if (!ipc_data_receive(&callid, NULL, &name_size)) {
     492        if (!ipc_data_write_receive(&callid, NULL, &name_size)) {
    493493                ipc_answer_0(callid, EREFUSED);
    494494                ipc_answer_0(iid, EREFUSED);
     
    514514         * Send confirmation to sender and get data into buffer.
    515515         */
    516         if (EOK != (retval = ipc_data_deliver(callid, name, name_size))) {
     516        if (EOK != (retval = ipc_data_write_deliver(callid, name, name_size))) {
    517517                ipc_answer_0(iid, EREFUSED);
    518518                return;
     
    567567        sending must be initiated by client
    568568
    569         int rc = ipc_data_send(phone, device->name, name_size);
     569        int rc = ipc_data_write_send(phone, device->name, name_size);
    570570        if (rc != EOK) {
    571571                async_wait_for(req, NULL);
Note: See TracChangeset for help on using the changeset viewer.