Примечания

1

There are several other IRPs which are only generated by the kernel in response to kernel related events. For example, when the system decides to powers down, a Power IRP is sent all drivers.

2

In NT and W2000 you can use the QueryDosDevice Win32 function to obtain a list of all symbolic links. I am not sure how useful this list is.

3

You are also supposed to queue IRPs that arrive while your device is sleeping. The simple solution to this problem is to wake up your device when an IRP arrives.

4

I used this approach when writing this book. My initial contents were completely different from the end result, and I rewrote these initial chapters after the rest of the book was complete.

5

If a file system driver is fetching a page back into memory then the IRQL may be APC_LEVEL.

6

NT 3.51 drivers should use zone buffers, which are now obsolete.

7

Actually, the kernel stack may be paged if a driver issues a user-mode wait (e.g. in KeWaitForSingleObject).

8

You will probably need to ensure that the Windows 98 environment space size is at least 2048 for device driver development.

9

The PHDIo and Wdm3 drivers are not included in the compilation list as they do not compile in Windows 98.

10

Be careful if initializing strings in paged code segments or code segments that are discarded after initialization. The Buffer data has the attributes of the underlying code segment and so may not be available when you want to access it. Chapter 14 gives an example in which I initially got this wrong. 

11

If you call IoAttachDeviceToDeviceStack at a higher IRQL, your driver may crash. 

12

If you are only compiling in W2000, you can include initguid.h instead.

13

CancelIo first became available in NT 4 and W98.

14

Blocking in dispatch routines is not recommended as it defeats the purpose of overlapped operations.

15

If the driver processes IRPs one by one, it could store this information in its device extension.

16

The first driver must disable its device interrupts, reprogram its hardware, and then enable interrupts again.

Добавить отзыв
ВСЕ ОТЗЫВЫ О КНИГЕ В ИЗБРАННОЕ

0

Вы можете отметить интересные вам фрагменты текста, которые будут доступны по уникальной ссылке в адресной строке браузера.

Отметить Добавить цитату
×