Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > how do i know when to set callback to paged or not paged?

Reply
Thread Tools Display Modes

how do i know when to set callback to paged or not paged?

 
 
pascal
Guest
Posts: n/a

 
      06-20-2010
when using the sample code PLX9x5x for the my PCI driver it does not handle
the I/O Control request so i added new queue for the I/O Control and callback
routine PCIeEvtIoDeviceControl and added the proper code in the application
for the IOCTL.
each time i called the I/O Control request i Got the 'blue screen' after few
times
i removed the PAGED_CODE(); line and every thing worked.
the PCIeEvtIoDeviceControl routine was copied from other driver and worked
there with the PAGED_CODE();
the question: what i am missing and when to make routine paged no nonpaged?
why did it work when the routine was nonpaged? i thought that it sould be
paged?

Thanks

 
Reply With Quote
 
 
 
 
pascal
Guest
Posts: n/a

 
      06-22-2010
1. i did run PreFast on the driver it there were no issus reported there.
2. after runing !analyze -v on the dump files and the error message was
like: routine marked as was paged but should have been unpaged, when i
removed the page_code macro it started to work.
3. when reading the irql level in the PCIeEvtIoDeviceControl it show number
2 = dispatch level, the function it self contains only DbgPrint,TraceEvents
and WdfRequestComplete. nothing else.
4. is it bad that the PCIeEvtIoDeviceControl could not be paged? what the
policy on those cases? to make most code paged?

Thanks

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server 2008 and AD problems Mike Active Directory 5 02-19-2010 05:31 AM
How to make a USB control request in a timer callback... sinosoidal Windows Vista Drivers 5 12-30-2009 03:27 PM
Toster Device Upper Filter paged or non-paged Brausewetter, Kurt Windows Vista Drivers 2 12-15-2009 11:52 PM
Windows Vista error - blue screen Page Fault in Non Paged Area PC Windows Vista Hardware 8 09-17-2008 03:57 PM
page fault in non paged area - after 15-60 minutes, new behavior Greg Windows Vista Performance 1 03-10-2008 06:34 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59