feat: (twimap) provide an easy way for mapping kernel objects into filesystem
[lunaix-os.git] / lunaix-os / includes / lunaix / device.h
index beb8066739d5b8c046da927c0299c1f6831633a6..be6dc26705d3228dba0f36ce0797cba048461834 100644 (file)
@@ -18,6 +18,7 @@ typedef unsigned int dev_t;
 struct device
 {
     struct llist_header siblings;
+    struct llist_header children;
     struct device* parent;
     struct hstr name;
     dev_t dev_id;
@@ -51,12 +52,12 @@ struct device*
 device_getbyid(struct llist_header* devlist, dev_t id);
 
 struct device*
-device_getbyhname(struct llist_header* devlist, struct hstr* name);
+device_getbyhname(struct device* root_dev, struct hstr* name);
 
 struct device*
-device_getbyname(struct llist_header* devlist, const char* name, size_t len);
+device_getbyname(struct device* root_dev, const char* name, size_t len);
 
 struct device*
-device_getbyoffset(struct llist_header* devlist, int pos);
+device_getbyoffset(struct device* root_dev, int pos);
 
 #endif /* __LUNAIX_DEVICE_H */