refactor: add a async read/write variant to device ops, with allow async io to be...
[lunaix-os.git] / lunaix-os / includes / lunaix / device.h
index a3b6f9403db071c1403215557245a35dad290242..1844590dce24ace0263102ff95a7551e02060dfb 100644 (file)
@@ -127,6 +127,8 @@ struct device
 
         int (*read)(struct device*, void*, off_t, size_t);
         int (*write)(struct device*, void*, off_t, size_t);
+        int (*read_async)(struct device*, void*, off_t, size_t);
+        int (*write_async)(struct device*, void*, off_t, size_t);
 
         int (*read_page)(struct device*, void*, off_t);
         int (*write_page)(struct device*, void*, off_t);