How to get upper layer device from an IRP!!!

Hi all:
I’m now writing a Root Hub Driver for USB2.0, and we must get the uppler layed USB device from the IRP so that we can process the URB correctly according to that upper USB device. But how can I do that ?


Best Regards!