// ks.h
typedef struct _KSALLOCATOR_DISPATCH {
PFNKSPININITIALIZEALLOCATOR InitializeAllocator;
PFNKSDELETEALLOCATOR DeleteAllocator;
PFNKSDEFAULTALLOCATE Allocate;
PFNKSDEFAULTFREE Free;
} KSALLOCATOR_DISPATCH, *PKSALLOCATOR_DISPATCH;
View the official Windows Driver Kit DDI reference
No description available.
The KSALLOCATOR_DISPATCH structure contains the callbacks required for a pin to implement its own kernel-level allocator.
InitializeAllocator
A pointer to a minidriver-supplied AVStrMiniInitializeAllocator callback routine.
DeleteAllocator
A pointer to a minidriver-supplied AVStrMiniDeleteAllocator callback routine.
Allocate
A pointer to a minidriver-supplied AVStrMiniAllocate callback routine.
Free
A pointer to a minidriver-supplied AVStrMiniAllocatorFreeFrame callback routine.
By providing a pointer to a KSALLOCATOR_DISPATCH structure in the relevant KSPIN_DISPATCH structure, a minidriver declares that the corresponding pin is capable of performing kernel-level allocation. The allocator might or might not be used by the graph manager. Note that memory allocated at kernel level cannot be passed to a user-mode filter.