Changes in uspace/srv/devmap/devmap.c [63e0bdd:ca2a18e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devmap/devmap.c
r63e0bdd rca2a18e 123 123 static devmap_handle_t last_handle = 0; 124 124 static devmap_device_t *null_devices[NULL_DEVICES]; 125 126 /*127 * Dummy list for null devices. This is necessary so that null devices can128 * be used just as any other devices, e.g. in devmap_device_unregister_core().129 */130 static LIST_INITIALIZE(dummy_null_driver_devices);131 125 132 126 static devmap_handle_t devmap_create_handle(void) … … 959 953 device->name = dev_name; 960 954 961 /* 962 * Insert device into list of all devices and into null devices array. 963 * Insert device into a dummy list of null driver's devices so that it 964 * can be safely removed later. 965 */ 955 /* Insert device into list of all devices 956 and into null devices array */ 966 957 list_append(&device->devices, &devices_list); 967 list_append(&device->driver_devices, &dummy_null_driver_devices);968 958 null_devices[i] = device; 969 959
Note:
See TracChangeset
for help on using the changeset viewer.