Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Config.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
3// Licensed under the Apache License, Version 2.0 (see LICENSE file)
4// Official repository: https://github.com/ne-app-eu/src
5
6#ifndef _NE_DDK_CONFIG_H_
7#define _NE_DDK_CONFIG_H_
8
9#include <DriverKit/DriverKit.h>
10#include <SystemKit/Macros.h>
11
12#define _ARCH __ne_arch
13
14#define _SUBSYSTEM_NET 0x1000
15#define _SUBSYSTEM_DDK 0x1000
16#define _SUBSYSTEM_SYS 0x1000
17
18#ifndef _SHARED
20#define _SHARED
21#endif
22
23#ifndef _PRIVATE
25#define _PRIVATE
26#endif
27
28#ifndef _NEKERNEL
29#define _NEKERNEL 202609L
30#endif
31
32#ifndef _COMMONCORE
33#define _COMMONCORE 202609L
34#endif
35
36#ifndef CLEANUP
37#define CLEANUP __cleanup__
38#endif
39
40#ifndef __cleanup
41#define __cleanup(x) unused
42#endif
43
44typedef int32_t* ddk_guard_int_ptr_t;
45
46struct _PRIVATE ddk_guard_type _FINAL {
48};
49
51DDK_EXTERN void ddk_cleanup_zone(int32_t**);
52
54DDK_EXTERN void ddk_guard_zone(struct ddk_guard_type*);
55
57DDK_EXTERN bool ddk_sanity_check(void);
58
60DDK_EXTERN void ddk_sanity_check_init(void);
61
62#endif
DDK_EXTERN void ddk_cleanup_zone(int32_t **)
Cleanup zone for the DDK.
DDK_EXTERN bool ddk_sanity_check(void)
Does a sanity check for the DDK driver.
int32_t * ddk_guard_int_ptr_t
Definition Config.h:44
DDK_EXTERN void ddk_sanity_check_init(void)
Initializes the sanity check variable.
#define _PRIVATE
Private attribute for the host pattern.
Definition Config.h:25
DDK_EXTERN void ddk_guard_zone(struct ddk_guard_type *)
Does enable the DDK guard when calling in a stack frame.
The Subsystem Information for Program Loader.
Definition Config.h:46
ddk_guard_int_ptr_t e_
Definition Config.h:47