summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/request.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs/request.h')
-rw-r--r--src/kernel/vfs/request.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h
index 7c991f4..4e309b0 100644
--- a/src/kernel/vfs/request.h
+++ b/src/kernel/vfs/request.h
@@ -1,25 +1,21 @@
#pragma once
-#include <camellia/flags.h>
#include <camellia/types.h>
-#include <kernel/proc.h>
#include <stdbool.h>
#include <stddef.h>
// describes something which can act as an access function
struct vfs_backend {
- size_t refcount;
/* references:
* struct vfs_mount
* struct vfs_request
* struct process
* struct handle
*/
- bool heap;
+ size_t refcount;
size_t potential_handlers; // 0 - orphaned
struct vfs_request *queue;
bool is_user;
-
union {
struct {
struct process *handler;
@@ -71,14 +67,5 @@ static inline void vfsreq_finish_short(struct vfs_request *req, long ret) {
/** Try to accept an enqueued request */
void vfs_backend_tryaccept(struct vfs_backend *);
-void vfs_backend_user_accept(struct vfs_request *req);
void vfs_backend_refdown(struct vfs_backend *);
-
-
-#define BACKEND_KERN(accept) ((struct vfs_backend){\
- .is_user = false, \
- .heap = false, \
- .potential_handlers = 1, \
- .refcount = 1, \
- .kern.accept = accept})