Add a get_queued function for devices to use to retrieve work items from the queued hashtable.