DevHelp FreeReqPacket
From EDM2
This service releases a request packet previously allocated by AllocReqPacket.
Contents
Syntax
C
USHORT APIENTRY DevHelp_FreeReqPacket( PBYTE ReqPktAddr );
Assembler
LES BX,request_packet ; Pointer to request packet previously allocated MOV DL,DevHlp_FreeReqPacket CALL [Device_Help]
Parameters
C
- ReqPktAddr (PBYTE)
- Pointer to request packet previously allocated.
Assembler
LES BX,request_packet ; Pointer to request packet previously allocated
Return Code
C
- Success Indicator
- None.
- Possible errors
- None.
Assembler
None .
Remarks
The physical device driver should only free those request packets that were previously allocated by AllocReqPacket The DevHlp_DevDone must not be used to return an allocated request packet. The system has a limited number of request packets, so it is important that a physical device driver not allocate request packets and hold them for future use.
The state of the interrupt flag is not preserved across calls to this DevHlp.
Example Code
C
#include "dhcalls.h" USHORT APIENTRY DevHelp_FreeReqPacket( PBYTE ReqPktAddr );