dm: Add functions to access a device's children