diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-03 18:20:35 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-03 18:20:35 +0200 |
| commit | a7c741c93cb0a53aea686eb2f342f2464bc12c14 (patch) | |
| tree | 5e90743873451c7f1bc6313d2fb210c470af2cd1 /DDK/KernelDev.c | |
| parent | 8c8822fff78f9ff9cd640271da9b3634c4c2f97f (diff) | |
COMMIT-07-03-2024-MHR-36
IMP: DDK specification and implementation done.
- Kernel calls I/O support for DDK.
- System calls I/O support for DDK.
- Add Allocation routines for DDK.
- Add Helloconf driver.
- One generic device.
IMPRV:
- GPU driver is now C++ based.
- Fixed icon path inside makefiles.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'DDK/KernelDev.c')
| -rw-r--r-- | DDK/KernelDev.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/DDK/KernelDev.c b/DDK/KernelDev.c index 6a6aac99..ff67fbe9 100644 --- a/DDK/KernelDev.c +++ b/DDK/KernelDev.c @@ -10,21 +10,12 @@ #include <DDK/KernelString.h> /// @brief Open a new binary device from path. -DK_EXTERN kernelDeviceRef kernelOpenBinaryDevice(const char* devicePath) +DK_EXTERN kernelDeviceRef kernelOpenDevice(const char* devicePath) { if (!devicePath) - return NIL; + return nil; - return kernelCall("OpenBinaryDevice", 1, devicePath, kernelStringLength(devicePath)); -} - -/// @brief Open a new character device from path. -DK_EXTERN kernelDeviceRef kernelOpenCharDevice(const char* devicePath) -{ - if (!devicePath) - return NIL; - - return kernelCall("OpenCharDevice", 1, devicePath, kernelStringLength(devicePath)); + return kernelCall("OpenDevice", 1, (void*)devicePath, kernelStringLength(devicePath)); } /// @brief Close any device. |
