summaryrefslogtreecommitdiffhomepage
path: root/src/libDDK/DriverKit/Device.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-03 06:43:42 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-03 06:47:39 +0100
commit92bbadf36f8bdffed9090cb345e57fc252c5a133 (patch)
treeac6b33909d8534cbc93adb0c6cb7b47a7fe441ff /src/libDDK/DriverKit/Device.h
parent2d7fed07e04ddae4924fde776059e78891ffd426 (diff)
chore: system: OpenHeFS improvements progress and HeapMgr, DDK additions.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/libDDK/DriverKit/Device.h')
-rw-r--r--src/libDDK/DriverKit/Device.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/libDDK/DriverKit/Device.h b/src/libDDK/DriverKit/Device.h
index 5f26d5d5..468b259b 100644
--- a/src/libDDK/DriverKit/Device.h
+++ b/src/libDDK/DriverKit/Device.h
@@ -15,13 +15,20 @@ struct _DDK_DEVICE;
#define DDK_TYPE_FILE (2)
#define DDK_TYPE_DEVICE (3)
-#define DDK_SUB_TYPE_TCP (1)
-#define DDK_SUB_TYPE_UDP (2)
-#define DDK_SUB_TYPE_BT (3)
+#define DDK_SUB_TYPE_TCP (1) /* TCP/IP */
+#define DDK_SUB_TYPE_UDP (2) /* Datagram */
+#define DDK_SUB_TYPE_BT (3) /* Bluetooth */
+
+/// @brief This enum takes care of the network stack.
+enum {
+ DDK_NET_DO_NOT_FLUSH,
+ DDK_NET_FLUSH_NOW,
+ DDK_NET_AUTO_FLUSH,
+};
/// @brief Kernel Device driver.
typedef struct _DDK_DEVICE DDK_FINAL {
- char d_name[DDK_DEVICE_NAME_LEN]; // the device name. Could be /./DEVICE_NAME/
+ char d_name[DDK_DEVICE_NAME_LEN]; // the device name. Could be /./DEVICE_NAME/
int d_type;
int d_subtype;
void* (*d_read)(void* arg, int len); // read from device.