diff options
author | dzwdz | 2022-08-28 14:53:48 +0200 |
---|---|---|
committer | dzwdz | 2022-08-28 14:53:48 +0200 |
commit | 96a1be7e79704d3d60324547b689f8dcdc357524 (patch) | |
tree | 17728f878af64669b16423e21a48b6bec1dc4d8e /src/kernel/arch/amd64/driver/util.h | |
parent | 83567c386e4a50cc4303d2c3966d7518331e129f (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.h | 4 |
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 *)); |