Changes in uspace/srv/devmap/devmap.c [cb819f9:ab108be4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devmap/devmap.c
rcb819f9 rab108be4 75 75 link_t namespaces; 76 76 /** Unique namespace identifier */ 77 dev map_handle_t handle;77 dev_handle_t handle; 78 78 /** Namespace name */ 79 79 char *name; … … 92 92 link_t driver_devices; 93 93 /** Unique device identifier */ 94 dev map_handle_t handle;94 dev_handle_t handle; 95 95 /** Device namespace */ 96 96 devmap_namespace_t *namespace; … … 118 118 static FIBRIL_MUTEX_INITIALIZE(null_devices_mutex); 119 119 120 static dev map_handle_t last_handle = 0;120 static dev_handle_t last_handle = 0; 121 121 static devmap_device_t *null_devices[NULL_DEVICES]; 122 122 123 static dev map_handle_t devmap_create_handle(void)123 static dev_handle_t devmap_create_handle(void) 124 124 { 125 125 /* TODO: allow reusing old handles after their unregistration … … 233 233 * 234 234 */ 235 static devmap_namespace_t *devmap_namespace_find_handle(dev map_handle_t handle)235 static devmap_namespace_t *devmap_namespace_find_handle(dev_handle_t handle) 236 236 { 237 237 link_t *item; … … 275 275 * 276 276 */ 277 static devmap_device_t *devmap_device_find_handle(dev map_handle_t handle)277 static devmap_device_t *devmap_device_find_handle(dev_handle_t handle) 278 278 { 279 279 link_t *item; … … 608 608 * Get handle from request 609 609 */ 610 dev map_handle_t handle = IPC_GET_ARG2(*call);610 dev_handle_t handle = IPC_GET_ARG2(*call); 611 611 devmap_device_t *dev = devmap_device_find_handle(handle); 612 612 … … 1052 1052 break; 1053 1053 default: 1054 ipc_answer_0(callid, ENOENT); 1054 if (!(callid & IPC_CALLID_NOTIFICATION)) 1055 ipc_answer_0(callid, ENOENT); 1055 1056 } 1056 1057 } … … 1110 1111 break; 1111 1112 default: 1112 ipc_answer_0(callid, ENOENT); 1113 if (!(callid & IPC_CALLID_NOTIFICATION)) 1114 ipc_answer_0(callid, ENOENT); 1113 1115 } 1114 1116 }
Note:
See TracChangeset
for help on using the changeset viewer.