My Project
Loading...
Searching...
No Matches
rtl.h
Go to the documentation of this file.
1
#ifndef X86_MATANEL_RUNTIME_LIBRARIES_H
2
#define X86_MATANEL_RUNTIME_LIBRARIES_H
3
4
/*++
5
6
Module Name:
7
8
rtl.h
9
10
Purpose:
11
12
This module contains declarations for the runtime library (RTL), which provide core support routines used by other kernel components.
13
14
Author:
15
16
slep (Matanel) 2025.
17
18
Revision History:
19
20
--*/
21
22
#include <stdint.h>
23
#include <stddef.h>
24
#include <stdbool.h>
25
#include "
macros.h
"
26
#include "
annotations.h
"
27
#include "
../mtstatus.h
"
28
29
FORCEINLINE
30
void
31
RtlZeroMemory
(
32
IN
void
* Destination,
33
IN
size_t
Length
34
)
35
/*++
36
37
Routine Description:
38
39
Fills a block of memory with zeros.
40
41
Arguments:
42
43
Destination - Pointer to the memory block to zero.
44
Length - Number of bytes to zero.
45
46
Return Value:
47
48
None.
49
50
--*/
51
{
52
unsigned
char
* ptr = (
unsigned
char
*)Destination;
53
while
(
Length
--)
54
*ptr++ = 0;
55
}
56
57
#endif
annotations.h
FORCEINLINE
#define FORCEINLINE
Definition
annotations.h:22
IN
#define IN
Definition
annotations.h:7
macros.h
Length
uint32_t Length
Definition
mh.h:6
mtstatus.h
RtlZeroMemory
FORCEINLINE void RtlZeroMemory(IN void *Destination, IN size_t Length)
Definition
rtl.h:31
Users
matanel
Desktop
Projects
KernelDevelopment
kernel
includes
rtl.h
Generated by
1.14.0