Jump to content

DevHelp FreeReqPacket: Difference between revisions

From EDM2
Created page with "This service releases a request packet previously allocated by AllocReqPacket. ==Syntax== ===C=== <PRE> USHORT APIENTRY DevHelp_FreeReqPacket( PBYTE ReqPktAddr ); </PRE> ==..."
 
No edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:DevHelp_FreeReqPacket}}
This service releases a request packet previously allocated by AllocReqPacket.  
This service releases a request packet previously allocated by AllocReqPacket.  



Latest revision as of 03:25, 16 May 2025

This service releases a request packet previously allocated by AllocReqPacket.

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 );

Related Functions