Upper filter driver

I had created lower filter driver for USB Hub. and i am able to get
IRPs and URBs easily. Then i made same filter driver as upper filter
driver but when i plug mass storage device then bug check error comes.
Can anybody tell me what problem had i done… what can be my mistake in
it… any sample code for upper filter driver for USB Hub.

Thanks in Advance
Chandrakant

You have not provided enough detail here to get a detailed response. This
will be my best attempt at helping given the information available:

Does the system not crash without your filter? If so, you have a bug in your
filter that you need to fix.

If that’s not the sort of guidance that you’re looking for, then you need to
do some investigation and come back with a more detailed post. Some minimal
things that might help you (and the other poor soul who is going to post
basically the exact same question within a day or two) do this are:

  1. What does !analyze -v say? Spend the time to go over this output and find
    out what it’s telling you. Then provide it in your post so that others have
    some clue as to what you’re talking about.

  2. What was going on at the time of the crash? Were you processing an IOCTL?
    A power request? Something else entirely?

  3. What’s the state of the machine? IRQL? Context?

Once you have that info, you can build a hypothesis for the reason of the
crash. You then need to apply your knowledge of how your driver, the O/S,
and, in this case, the USB stack work to determine if your hypothesis is
correct or not. If it’s not correct, you need to reevaluate your assumptions
and make a new hypothesis.

At first this is a highly painful and time consuming process, but the more
you do it the easier it gets. Also, the knowledge you gain from these
debugging sessions is ultimately going to increase your understanding of the
architecture and result in a better quality driver. And, luckily, people
here are happy to make the effort provide guidance along the way, but only
if they feel as though you’re making an effort on your end also.

(Sorry for the quasi-rant, this sort of question just rubs me the wrong way)

-scott


Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com

wrote in message news:xxxxx@ntdev…
>I had created lower filter driver for USB Hub. and i am able to get
> IRPs and URBs easily. Then i made same filter driver as upper filter
> driver but when i plug mass storage device then bug check error comes.
> Can anybody tell me what problem had i done… what can be my mistake in
> it… any sample code for upper filter driver for USB Hub.
>
> Thanks in Advance
> Chandrakant
>
>