Add memory manager probe functions
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <mm/pfault.hh>
|
||||
#include <mm/pfn.hh>
|
||||
#include <mm/pool.hh>
|
||||
#include <mm/probe.hh>
|
||||
#include <mm/quota.hh>
|
||||
#include <mm/tags.hh>
|
||||
|
||||
|
||||
44
xtoskrnl/includes/mm/probe.hh
Normal file
44
xtoskrnl/includes/mm/probe.hh
Normal file
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/mm/probe.hh
|
||||
* DESCRIPTION: Memory Manager read/write probe support
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_MM_PROBE_HH
|
||||
#define __XTOSKRNL_MM_PROBE_HH
|
||||
|
||||
#include <xtos.hh>
|
||||
|
||||
|
||||
/* Memory Manager */
|
||||
namespace MM
|
||||
{
|
||||
class Probe
|
||||
{
|
||||
public:
|
||||
STATIC XTAPI VOID ProbeForRead(IN CONST PVOID Address,
|
||||
IN SIZE_T Size,
|
||||
IN ULONG Alignment);
|
||||
STATIC XTAPI VOID ProbeForReadArray(IN CONST PVOID Array,
|
||||
IN ULONG ItemSize,
|
||||
IN ULONG ItemCount,
|
||||
IN ULONG Alignment);
|
||||
STATIC XTAPI VOID ProbeForReadStructure(IN CONST PVOID Address,
|
||||
IN SIZE_T Size,
|
||||
IN ULONG Alignment);
|
||||
STATIC XTAPI VOID ProbeForWrite(IN PVOID Address,
|
||||
IN SIZE_T Size,
|
||||
IN ULONG Alignment);
|
||||
STATIC XTAPI VOID ProbeForWriteArray(IN OUT PVOID Array,
|
||||
IN ULONG ItemSize,
|
||||
IN ULONG ItemCount,
|
||||
IN ULONG Alignment);
|
||||
STATIC XTAPI VOID ProbeForWriteStructure(IN PVOID Address,
|
||||
IN SIZE_T Size,
|
||||
IN ULONG Alignment);
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* __XTOSKRNL_MM_PROBE_HH */
|
||||
Reference in New Issue
Block a user