summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/driver/util.h
diff options
context:
space:
mode:
authordzwdz2022-08-28 14:53:48 +0200
committerdzwdz2022-08-28 14:53:48 +0200
commit96a1be7e79704d3d60324547b689f8dcdc357524 (patch)
tree17728f878af64669b16423e21a48b6bec1dc4d8e /src/kernel/arch/amd64/driver/util.h
parent83567c386e4a50cc4303d2c3966d7518331e129f (diff)
kernel/driver: add postqueue_join / postqueue_pop
Diffstat (limited to 'src/kernel/arch/amd64/driver/util.h')
-rw-r--r--src/kernel/arch/amd64/driver/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/driver/util.h b/src/kernel/arch/amd64/driver/util.h
index c91605c..d89992a 100644
--- a/src/kernel/arch/amd64/driver/util.h
+++ b/src/kernel/arch/amd64/driver/util.h
@@ -1,4 +1,5 @@
#pragma once
+#include <stdbool.h>
#include <stddef.h>
struct vfs_request;
@@ -10,3 +11,6 @@ int req_readcopy(struct vfs_request *req, const void *buf, size_t len);
(req->input.kern && \
req->input.len == plen && \
memcmp(req->input.buf_kern, path, plen) == 0)
+
+void postqueue_join(struct vfs_request **queue, struct vfs_request *req);
+bool postqueue_pop(struct vfs_request **queue, void (*accept)(struct vfs_request *));