TapeClassAllocateSrbBuffer - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// minitape.h

SCSIPORT_API BOOLEAN TapeClassAllocateSrbBuffer(
  [in, out] PSCSI_REQUEST_BLOCK Srb,
  [in]      ULONG               SrbBufferSize
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-minitape-tapeclassallocatesrbbuffer)

TapeClassAllocateSrbBuffer function

Description

The TapeClassAllocateSrbBuffer routine allocates an Srb->DataBuffer.

Parameters

Srb [in, out]

Pointer to the SRB.

SrbBufferSize [in]

Specifies the size, in bytes, of the DataBuffer to be allocated.

Return value

TapeClassAllocateSrbBuffer returns TRUE if the DataBuffer was allocated successfully, and FALSE if the buffer was not allocated.

Remarks

TapeClassAllocateSrbBuffer allocates an Srb->DataBuffer from nonpaged memory and initializes the members to zero. If the buffer already exists from an earlier call, it is freed and a new buffer allocated. A tape miniclass driver calls this routine to allocate a DataBuffer in a portable way.