🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #282

Device Control Procedure

#282
From: ikoo
Date: Tue, 04 Aug 1998 00:00
25 lines
1936 bytes
DEVICE CONTROL PROCEDURE

Every virtual device needs a device control procedure. The VMM calls this procedure to 
send the virtual device system control messages. The system control messages direct
the virtaul device to carry out actions, such as initializing itself, and to notify
the virtual
device of changes to virtual machines, such as a virtual machine is being created. Most
virtual devices define the device control procedure by using the
Begin_Control_Dispatch, Control_Dispatch, and End_Control_Dispatch macros as
in the following example:
        Begin_Control_Dispatch VSAMPLED
                Control_Dispatch Sys_CriticalInit, VSAMPLED_Crit_Init
                Control_Dispatch Device_Init, VSAMPLED_Device_Init
                Control_Dispatch Sys_Critical_Exit, VSAMPLED_Crit_Exit
        End_Control_Dispatch VSAMPLED

In this example, the macros create a device control procedure, named
VSAMPLED_Control, and generate instructions that check for the messages
Sys_Critical_Init, Device_Init, and Sys_Critical_Exit. When these messages are sent
to the procedure, the procedure passes control to a corresponding procedure, such as
VSAMPLED_Device_Init, to process the messages. These message-processing
procedures must be defined by the virtual device.

--
�� ��Դ:���������� BBS bbs.nease.net��[FROM: 202.96.133.150]
Technical Details
Message-ID: <3PkBDN$SD9@bbs.nease.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fc86e,61b8e2fc24090f56,start
X-Google-Attributes: gidfc86e,public
From: ikoo.bbs@bbs.nease.net (ikoo)
Subject: Device Control Procedure
Date: 1998/08/04
Message-ID: <3PkBDN$SD9@bbs.nease.net>
X-Deja-AN: 378458622
X-Filename: Program/M.902235527.A
X-Complaints-To: usenet@news.nease.net
X-Trace: news.nease.net 902367827 17077 202.96.152.195 (6 Aug 1998 01:43:47 GMT)
Organization: Net Ease
NNTP-Posting-Date: 6 Aug 1998 01:43:47 GMT
Newsgroups: cn.bbs.comp.program,