summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/request.h
diff options
context:
space:
mode:
authordzwdz2022-08-08 00:45:46 +0200
committerdzwdz2022-08-08 00:45:46 +0200
commitb99d66ce12b4a1a0dd452d8a38006eede0c05cf2 (patch)
tree386aeeda170b8e8ed94dadeb0749a5c441995936 /src/kernel/vfs/request.h
parentb0addbe14d2353e9c33f7f4d8a0b4ba8b24b2bd9 (diff)
kernel/backend: remove the kern.ready() method
Diffstat (limited to 'src/kernel/vfs/request.h')
-rw-r--r--src/kernel/vfs/request.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h
index ee33623..7c991f4 100644
--- a/src/kernel/vfs/request.h
+++ b/src/kernel/vfs/request.h
@@ -25,7 +25,6 @@ struct vfs_backend {
struct process *handler;
} user;
struct {
- bool (*ready)(struct vfs_backend *);
void (*accept)(struct vfs_request *);
} kern;
};
@@ -77,9 +76,9 @@ void vfs_backend_user_accept(struct vfs_request *req);
void vfs_backend_refdown(struct vfs_backend *);
-#define BACKEND_KERN(ready, accept) ((struct vfs_backend){\
+#define BACKEND_KERN(accept) ((struct vfs_backend){\
.is_user = false, \
.heap = false, \
.potential_handlers = 1, \
.refcount = 1, \
- .kern = {ready, accept}})
+ .kern.accept = accept})