richard_damon wrote on Saturday, October 19, 2019:
A couple of things to note about this. Nothing ‘breaks’ when you put a queue in the registry twice, you just waste a bit of space.
Also, and perhaps more importantly, I would very much dislike the registry rejecting adding two queue to the registry with the same name, as I frequently do this. A device driver may need multiple queue (and incoming queue, and outgoing queue, a mutex, and maybe a semaphore). You may have multiple similar devices, so you create a common driver which you initialize with parameters, including a name, which it uses on the various queues. It would be more work to make unique names for each queue used by the device, and you can usually distinguish which is which by that attributes of the queue.