Windows NT Device Driver Development Basis (7)

zhaozj2021-02-11  215

1.3.9 layers

I / O Manager A useful feature is to allow a driver stack over another driver. In this point

When writing a protocol stack program such as network driver, you can write relatively independent code for each layer. When the driver needs

When migrating on a different platform, you only need to rewrite the lowermost hardware driver. High-level driver

A function is to process the user request, such as dividing a larger request into a smaller request.

Give the next process.

1.3.10 device name and its symbolic connection

The Windows NT system maintains an object namespace, classify all the names of the objects that have been registered within the system

There is a tree space, and the WinObj tool provided with Win32 SDK can browse this space. If you want the equipment

It is necessary to open by the user's CreateFile function, you need to give it to the application of IOCREATEDEVICE to create the device object.

It is a name, located in / device / under, and calls IOCREATESYMBOLICLINK to create one in / dosdevices /

Symbol connection. In this way, the user program can open this setting with CreateFile (".// symbolic connection name", ...)

Prepare, and get its handle.

-

转载请注明原文地址:https://www.9cbs.com/read-3785.html

New Post(0)