STATUS_INSUFFICIENT_RESOURCES being returned from WdfRequestRetrieveInputBuffer...

I am porting a WDM virtual CD driver to WDF and in my handling code for
IOCTL_CDROM_GET_DRIVE_GEOMETRY WdfRequestRetrieveInputBuffer is
returning STATUS_INSUFFICIENT_RESOURCES, even though I have plenty of
memory available. Any ideas what would cause this?

Thanks,
–Jeremy

Did you give a minimum size for the input buffer on this call? If so,
was it bigger than the buffer you actually received?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I am porting a WDM virtual CD driver to WDF and in my handling code for
IOCTL_CDROM_GET_DRIVE_GEOMETRY WdfRequestRetrieveInputBuffer is
returning STATUS_INSUFFICIENT_RESOURCES, even though I have plenty of
memory available. Any ideas what would cause this?

Thanks,
–Jeremy


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Actually, that can’t be it. My apologies for missing that (it’d be
“buffer too small”).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bob Kjelgaard
Sent: Tuesday, September 12, 2006 2:19 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

Did you give a minimum size for the input buffer on this call? If so,
was it bigger than the buffer you actually received?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I am porting a WDM virtual CD driver to WDF and in my handling code for
IOCTL_CDROM_GET_DRIVE_GEOMETRY WdfRequestRetrieveInputBuffer is
returning STATUS_INSUFFICIENT_RESOURCES, even though I have plenty of
memory available. Any ideas what would cause this?

Thanks,
–Jeremy


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

I’m passing 0 as the minimum size (but like you said in your next post,
if that were the problem the error would be BUFFER_TOO_SMALL).
–Jeremy

Bob Kjelgaard wrote:

Did you give a minimum size for the input buffer on this call? If so,
was it bigger than the buffer you actually received?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I am porting a WDM virtual CD driver to WDF and in my handling code for
IOCTL_CDROM_GET_DRIVE_GEOMETRY WdfRequestRetrieveInputBuffer is
returning STATUS_INSUFFICIENT_RESOURCES, even though I have plenty of
memory available. Any ideas what would cause this?

Thanks,
–Jeremy


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

What size are you specifying for the required buffer length?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I am porting a WDM virtual CD driver to WDF and in my handling code for
IOCTL_CDROM_GET_DRIVE_GEOMETRY WdfRequestRetrieveInputBuffer is
returning STATUS_INSUFFICIENT_RESOURCES, even though I have plenty of
memory available. Any ideas what would cause this?

Thanks,
–Jeremy


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Odd- you ought to get that return, anyway, because this IOCTL has no
input buffer, per the WDK docs (but the sender may not have followed the
rules). Which makes me wonder why you want it?

Be that as it may, turning on the Wdf verifier and using traceview or
!wdflogdump (which will need symbols) to look at the trace info should
say why this was getting bounced that way.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:42 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I’m passing 0 as the minimum size (but like you said in your next post,
if that were the problem the error would be BUFFER_TOO_SMALL).
–Jeremy

Bob Kjelgaard wrote:

Did you give a minimum size for the input buffer on this call? If so,
was it bigger than the buffer you actually received?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I am porting a WDM virtual CD driver to WDF and in my handling code
for
IOCTL_CDROM_GET_DRIVE_GEOMETRY WdfRequestRetrieveInputBuffer is
returning STATUS_INSUFFICIENT_RESOURCES, even though I have plenty of
memory available. Any ideas what would cause this?

Thanks,
–Jeremy


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Sorry for the imprecise pronouns. By the first paragraph, I meant
STATUS_BUFFER_TOO_SMALL is what you should have seen, anyway [unless the
caller specified an input buffer even though the IOCTL doesn’t require
one].

It would be good to see a trace.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bob Kjelgaard
Sent: Tuesday, September 12, 2006 3:21 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

Odd- you ought to get that return, anyway, because this IOCTL has no
input buffer, per the WDK docs (but the sender may not have followed the
rules). Which makes me wonder why you want it?

Be that as it may, turning on the Wdf verifier and using traceview or
!wdflogdump (which will need symbols) to look at the trace info should
say why this was getting bounced that way.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:42 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I’m passing 0 as the minimum size (but like you said in your next post,
if that were the problem the error would be BUFFER_TOO_SMALL).
–Jeremy

Bob Kjelgaard wrote:

Did you give a minimum size for the input buffer on this call? If so,
was it bigger than the buffer you actually received?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I am porting a WDM virtual CD driver to WDF and in my handling code
for
IOCTL_CDROM_GET_DRIVE_GEOMETRY WdfRequestRetrieveInputBuffer is
returning STATUS_INSUFFICIENT_RESOURCES, even though I have plenty of
memory available. Any ideas what would cause this?

Thanks,
–Jeremy


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

What does !wdflogdump say, if anything?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:42 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I’m passing 0 as the minimum size (but like you said in your next post,
if that were the problem the error would be BUFFER_TOO_SMALL).
–Jeremy

Bob Kjelgaard wrote:

Did you give a minimum size for the input buffer on this call? If so,
was it bigger than the buffer you actually received?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I am porting a WDM virtual CD driver to WDF and in my handling code
for
IOCTL_CDROM_GET_DRIVE_GEOMETRY WdfRequestRetrieveInputBuffer is
returning STATUS_INSUFFICIENT_RESOURCES, even though I have plenty of
memory available. Any ideas what would cause this?

Thanks,
–Jeremy


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

My bad… some of my code was adapted from the nonpnp wdf sample which
converts all errors from WdfRequestRetrieveInputBuffer into
STATUS_INSUFFICIENT_RESOURCES, so that is what I saw in my logs. The
actual error code I’m getting is STATUS_BUFFER_TOO_SMALL.

What are you looking at in the WDK docs that indicates that the IOCTL
doesn’t have an input buffer? Is it because the purpose of the control
code is to get data rather than set data, or is there something more
specific that you are looking at?

Thanks,
–Jeremy

Bob Kjelgaard wrote:

Odd- you ought to get that return, anyway, because this IOCTL has no
input buffer, per the WDK docs (but the sender may not have followed the
rules). Which makes me wonder why you want it?

Be that as it may, turning on the Wdf verifier and using traceview or
!wdflogdump (which will need symbols) to look at the trace info should
say why this was getting bounced that way.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 12, 2006 2:42 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

I’m passing 0 as the minimum size (but like you said in your next post,
if that were the problem the error would be BUFFER_TOO_SMALL).
–Jeremy

Bob Kjelgaard wrote:
> Did you give a minimum size for the input buffer on this call? If so,
> was it bigger than the buffer you actually received?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
> Sent: Tuesday, September 12, 2006 2:12 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
> WdfRequestRetrieveInputBuffer…
>
> I am porting a WDM virtual CD driver to WDF and in my handling code
for
> IOCTL_CDROM_GET_DRIVE_GEOMETRY WdfRequestRetrieveInputBuffer is
> returning STATUS_INSUFFICIENT_RESOURCES, even though I have plenty of
> memory available. Any ideas what would cause this?
>
> Thanks,
> --Jeremy
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Jeremy Chaney wrote:

What are you looking at in the WDK docs that indicates that the IOCTL
doesn’t have an input buffer? Is it because the purpose of the control
code is to get data rather than set data, or is there something more
specific that you are looking at?

The docs don’t specifically say “there is no input buffer”, but the fact
that the only documented “input” is the length of the output buffer
seems to make a pretty strong case.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Yes. If there is an input buffer, then the input section would tell you
its address and size. So not being there means there is none.

This does assume you can trust the documentation;>.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Tuesday, September 12, 2006 4:35 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] STATUS_INSUFFICIENT_RESOURCES being returned from
WdfRequestRetrieveInputBuffer…

Jeremy Chaney wrote:

What are you looking at in the WDK docs that indicates that the IOCTL
doesn’t have an input buffer? Is it because the purpose of the control
code is to get data rather than set data, or is there something more
specific that you are looking at?

The docs don’t specifically say “there is no input buffer”, but the fact
that the only documented “input” is the length of the output buffer
seems to make a pretty strong case.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer