Changeset 8fb1bf82 in mainline for uspace/srv/devmap/devmap.c


Ignore:
Timestamp:
2010-11-25T13:42:50Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8df8415
Parents:
a93d79a (diff), eb667613 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    ra93d79a r8fb1bf82  
    7575        link_t namespaces;
    7676        /** Unique namespace identifier */
    77         dev_handle_t handle;
     77        devmap_handle_t handle;
    7878        /** Namespace name */
    7979        char *name;
     
    9292        link_t driver_devices;
    9393        /** Unique device identifier */
    94         dev_handle_t handle;
     94        devmap_handle_t handle;
    9595        /** Device namespace */
    9696        devmap_namespace_t *namespace;
     
    118118static FIBRIL_MUTEX_INITIALIZE(null_devices_mutex);
    119119
    120 static dev_handle_t last_handle = 0;
     120static devmap_handle_t last_handle = 0;
    121121static devmap_device_t *null_devices[NULL_DEVICES];
    122122
    123 static dev_handle_t devmap_create_handle(void)
     123static devmap_handle_t devmap_create_handle(void)
    124124{
    125125        /* TODO: allow reusing old handles after their unregistration
     
    233233 *
    234234 */
    235 static devmap_namespace_t *devmap_namespace_find_handle(dev_handle_t handle)
     235static devmap_namespace_t *devmap_namespace_find_handle(devmap_handle_t handle)
    236236{
    237237        link_t *item;
     
    275275 *
    276276 */
    277 static devmap_device_t *devmap_device_find_handle(dev_handle_t handle)
     277static devmap_device_t *devmap_device_find_handle(devmap_handle_t handle)
    278278{
    279279        link_t *item;
     
    608608         * Get handle from request
    609609         */
    610         dev_handle_t handle = IPC_GET_ARG2(*call);
     610        devmap_handle_t handle = IPC_GET_ARG2(*call);
    611611        devmap_device_t *dev = devmap_device_find_handle(handle);
    612612       
     
    10521052                        break;
    10531053                default:
    1054                         if (!(callid & IPC_CALLID_NOTIFICATION))
    1055                                 ipc_answer_0(callid, ENOENT);
     1054                        ipc_answer_0(callid, ENOENT);
    10561055                }
    10571056        }
     
    11111110                        break;
    11121111                default:
    1113                         if (!(callid & IPC_CALLID_NOTIFICATION))
    1114                                 ipc_answer_0(callid, ENOENT);
     1112                        ipc_answer_0(callid, ENOENT);
    11151113                }
    11161114        }
Note: See TracChangeset for help on using the changeset viewer.