Hello, All!
Suppose I got PDO during QDR can I somehow attach to that PDO using WDF staff?
Eugene.
Hello, All!
Suppose I got PDO during QDR can I somehow attach to that PDO using WDF staff?
Eugene.
One of the beauties of KMDF is that you don’t have to restrict yourself to just WDF staff. You can use ordinary I/O Manager functions IoAttachDevice if you wish…
Peter
OSR
Well yes and no. what are you going to attach with? The only WDFDEVICE you can create out of the blue is a control WDFDEVICE and it does not have any support for pnp and power. This means that you could create a control WDFDEVICE and then attach it to whatever stack you want (and yes Ray, I know you have done this
), but you then have to impl all the pnp and power stuff on your own in preprocess routines, so you lose all of that nice stuff. You then also lose power managed queues. So while you can do this, how much does it really buy you to do it in KMDF at all?
Suppose I got PDO during QDR can I somehow attach to that PDO using WDF staff?
Why do you think you need to write a bus filter that virally attaches itself through the stack? What are you trying to accomplish?
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Wednesday, August 20, 2008 8:27 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] KMDF: Is there any way to make attach to PDO not using EvtDeviceAdd?
One of the beauties of KMDF is that you don’t have to restrict yourself to just WDF staff. You can use ordinary I/O Manager functions IoAttachDevice if you wish…
Peter
OSR
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Bus filter drivers solve specific problems and remain useful and are not
in and of themselves ‘viral’. So is there any good KMDF way to attach to
a PDO obtained through filtering QDR?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Wednesday, August 20, 2008 12:35 PM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] KMDF: Is there any way to make attach to PDO not
using EvtDeviceAdd?
Well yes and no. what are you going to attach with? The only WDFDEVICE
you can create out of the blue is a control WDFDEVICE and it does not
have any support for pnp and power. This means that you could create a
control WDFDEVICE and then attach it to whatever stack you want (and yes
Ray, I know you have done this
), but you then have to impl all the
pnp and power stuff on your own in preprocess routines, so you lose all
of that nice stuff. You then also lose power managed queues. So while
you can do this, how much does it really buy you to do it in KMDF at
all?
Suppose I got PDO during QDR can I somehow attach to that PDO using
WDF staff?
Why do you think you need to write a bus filter that virally attaches
itself through the stack? What are you trying to accomplish?
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Wednesday, August 20, 2008 8:27 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] KMDF: Is there any way to make attach to PDO not
using EvtDeviceAdd?
One of the beauties of KMDF is that you don’t have to restrict yourself
to just WDF staff. You can use ordinary I/O Manager functions
IoAttachDevice if you wish…
Peter
OSR
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Viral, not viral, tomato, tomato, let’s call the whole thing off ;). Like I said, the only way to do this would be to create a control WDFDEVICE and then manually implement pnp and power on your own after you attach on your own. I know this has been done before, but it is not something that we as the WDF test so it could have its own set of lurking issues in the details somewhere.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Wednesday, August 20, 2008 12:24 PM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] KMDF: Is there any way to make attach to PDO not using EvtDeviceAdd?
Bus filter drivers solve specific problems and remain useful and are not
in and of themselves ‘viral’. So is there any good KMDF way to attach to
a PDO obtained through filtering QDR?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Wednesday, August 20, 2008 12:35 PM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] KMDF: Is there any way to make attach to PDO not
using EvtDeviceAdd?
Well yes and no. what are you going to attach with? The only WDFDEVICE
you can create out of the blue is a control WDFDEVICE and it does not
have any support for pnp and power. This means that you could create a
control WDFDEVICE and then attach it to whatever stack you want (and yes
Ray, I know you have done this
), but you then have to impl all the
pnp and power stuff on your own in preprocess routines, so you lose all
of that nice stuff. You then also lose power managed queues. So while
you can do this, how much does it really buy you to do it in KMDF at
all?
Suppose I got PDO during QDR can I somehow attach to that PDO using
WDF staff?
Why do you think you need to write a bus filter that virally attaches
itself through the stack? What are you trying to accomplish?
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Wednesday, August 20, 2008 8:27 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] KMDF: Is there any way to make attach to PDO not
using EvtDeviceAdd?
One of the beauties of KMDF is that you don’t have to restrict yourself
to just WDF staff. You can use ordinary I/O Manager functions
IoAttachDevice if you wish…
Peter
OSR
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Hello, xxxxx@osr.com!
P> One of the beauties of KMDF is that you don’t have to restrict
P> yourself to just WDF staff. You can use ordinary I/O Manager
P> functions IoAttachDevice if you wish…
Are you sure Wdf01000!FxDevice::DispatchWithLock and Wdf01000!FxDevice::Dispatch will be
understood what’s going on?
Eugene.
Hello, Doron!
> Suppose I got PDO during QDR can I somehow attach to that PDO using
>> WDF staff?
DH> Why do you think you need to write a bus filter that virally
DH> attaches itself through the stack? What are you trying to
DH> accomplish?
Suppose I need to filter Parallel ports. My device class (GUID_DEVCLASS_PORTS) upper
filter attaches to ParallelPort0, but I want to attach to Parallel0 (or Paralllel0.1 or
Parallel0.0-1 etc) too. I handle QDR and see Parallel0 device object in BusRelations. Of
cause I want to attach to it… ![]()
Suppose I want to change list of PDOs on some bus what should I do? Different buses work
differently. For USB (hope for PCMCIA too) you need only device class filter
(GUID_DEVCLASS_USB, GUID_DEVCLASS_PCMCIA, GUID_DEVCLASS_MTD) - you’ll receive DeviceAdd
for all hub’s PDOs. For 1394 (GUID_DEVCLASS_1394) or SD (GUID_DEVCLASS_SDHOST, ) you’ll
need to attach to PDOs because they can be like “hubs” - they can produce its PDOs and you
won’t receive DeviceAdd. Am I right? Correct me, please.
Please, don’t ask me what I do. I do my work. ![]()
PS: Where is the source code of WDF? ![]()
“1) Will source code be released? My understanding from talking informally with members of
the WDF team is that they are all strongly in favor of releasing the WDF source code. I
haven’t talked to a single person involved in WDF at MS, in fact, who ISN’T in favor of
releasing WDF source code. So if the source code is NOT available at first release, my
guess would be that it will be because of some major legal obstacle. We’ll just have to
wait and see.” - http://www.osronline.com/article.cfm?id=287
Eugene.
I know why you *think* you need a bus filter. I ask what you are trying to do b/c many times, there are other alternatives to the same problem that do not need a bus filter. In light of that I still gave you the details you would need to pull it on in WDF, in retrospect, against my better judgement in this case.
PS: Where is the source code of WDF?
In the end I have no control over this. What I do have control over is my free time, of which some of it I spend on this list helping people b/c I want to, not b/c my job requires me to. Since I have control over my free time, I am choosing to no longer answer your questions for a while.
D
PS maybe it was just the wrong day to be a little sarcastic on your part since I was in the ER w/my wife until 1 am and I am a bit cranky and tired. I guess timing is everything ![]()
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Eugene Lomovsky
Sent: Thursday, August 21, 2008 8:05 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] KMDF: Is there any way to make attach to PDO not using EvtDeviceAdd?
Hello, Doron!
> Suppose I got PDO during QDR can I somehow attach to that PDO using
>> WDF staff?
DH> Why do you think you need to write a bus filter that virally
DH> attaches itself through the stack? What are you trying to
DH> accomplish?
Suppose I need to filter Parallel ports. My device class (GUID_DEVCLASS_PORTS) upper
filter attaches to ParallelPort0, but I want to attach to Parallel0 (or Paralllel0.1 or
Parallel0.0-1 etc) too. I handle QDR and see Parallel0 device object in BusRelations. Of
cause I want to attach to it… ![]()
Suppose I want to change list of PDOs on some bus what should I do? Different buses work
differently. For USB (hope for PCMCIA too) you need only device class filter
(GUID_DEVCLASS_USB, GUID_DEVCLASS_PCMCIA, GUID_DEVCLASS_MTD) - you’ll receive DeviceAdd
for all hub’s PDOs. For 1394 (GUID_DEVCLASS_1394) or SD (GUID_DEVCLASS_SDHOST, ) you’ll
need to attach to PDOs because they can be like “hubs” - they can produce its PDOs and you
won’t receive DeviceAdd. Am I right? Correct me, please.
Please, don’t ask me what I do. I do my work. ![]()
PS: Where is the source code of WDF? ![]()
“1) Will source code be released? My understanding from talking informally with members of
the WDF team is that they are all strongly in favor of releasing the WDF source code. I
haven’t talked to a single person involved in WDF at MS, in fact, who ISN’T in favor of
releasing WDF source code. So if the source code is NOT available at first release, my
guess would be that it will be because of some major legal obstacle. We’ll just have to
wait and see.” - http://www.osronline.com/article.cfm?id=287
Eugene.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer