- IOUringEngine();
- void submit_read(int fd, size_t len, off_t offset, std::function<void(std::string)> cb);
+ IOUringEngine(size_t slop_bytes);
+ void submit_read(int fd, size_t len, off_t offset, std::function<void(std::string_view)> cb);
+
+ // NOTE: We just do the stat() to get the data into the dentry cache for fast access;
+ // we don't care about the return value. Thus, the callback has no parameter lists.
+ // If we have no io_uring, the callback will be made immediately, with no stat() call
+ // being done.
+ void submit_stat(const char *path, std::function<void()> cb);
+ bool get_supports_stat() { return supports_stat; }
+