diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 15:01:34 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 15:01:34 -0500 |
| commit | ceabd82ac8e796249feacf39c836034ed5e11c6d (patch) | |
| tree | e446d471a0eaf4ed7ac67e878ce4fb02334a2acb /src/libDDK | |
| parent | 0376382a848ef5ebbb0e02428c9d1df8a099d8b4 (diff) | |
chore: source code review and fixes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/libDDK')
| -rw-r--r-- | src/libDDK/DriverKit/c++/ddk.h | 2 | ||||
| -rw-r--r-- | src/libDDK/DriverKit/c++/driver_base.h | 10 | ||||
| -rw-r--r-- | src/libDDK/src/ddk_kernel_call.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/libDDK/DriverKit/c++/ddk.h b/src/libDDK/DriverKit/c++/ddk.h index 2c83f935..d8576a57 100644 --- a/src/libDDK/DriverKit/c++/ddk.h +++ b/src/libDDK/DriverKit/c++/ddk.h @@ -9,5 +9,5 @@ #pragma once +#include <DriverKit/c++/checksum.h> #include <DriverKit/c++/driver_base.h> -#include <DriverKit/c++/checksum.h> diff --git a/src/libDDK/DriverKit/c++/driver_base.h b/src/libDDK/DriverKit/c++/driver_base.h index 89cc04d8..a0c22216 100644 --- a/src/libDDK/DriverKit/c++/driver_base.h +++ b/src/libDDK/DriverKit/c++/driver_base.h @@ -29,10 +29,10 @@ class IDriverBase { using PtrType = VoidPtr; - virtual BOOL IsCastable() { return NO; } - virtual constexpr BOOL IsActive() { return NO; } - virtual PtrType Leak() { return nullptr; } - virtual constexpr Int32 Type() { return 0; } + virtual BOOL IsCastable() { return NO; } + virtual constexpr BOOL IsActive() { return NO; } + virtual PtrType Leak() { return nullptr; } + virtual constexpr Int32 Type() { return 0; } }; /// @brief This concept requires the Driver to be IDriverBase compliant. @@ -43,6 +43,6 @@ concept IsValidDriver = requires(T a) { /// @brief Consteval helper to detect whether a template is truly based on IDriverBase. /// @note This helper is consteval only. -template<IsValidDriver T> +template <IsValidDriver T> inline consteval void ce_ddk_is_valid(T) {} } // namespace Kernel::DDK diff --git a/src/libDDK/src/ddk_kernel_call.c b/src/libDDK/src/ddk_kernel_call.c index 92652969..f4bf9130 100644 --- a/src/libDDK/src/ddk_kernel_call.c +++ b/src/libDDK/src/ddk_kernel_call.c @@ -12,8 +12,8 @@ #include <stdarg.h> /// @brief this is an internal call, do not use it. -DDK_EXTERN ATTRIBUTE(naked) ptr_t - __ke_call_dispatch(const int32_t name, int32_t cnt, void* data, size_t sz); +DDK_EXTERN ATTRIBUTE(naked) +ptr_t __ke_call_dispatch(const int32_t name, int32_t cnt, void* data, size_t sz); /// @brief This function hashes the path into a FNV symbol. /// @param path the path to hash. |
