summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authordzwdz2022-09-20 23:35:33 +0200
committerdzwdz2022-09-20 23:35:33 +0200
commit3b8b63bf133e855d942abb67de931ce08b7a4452 (patch)
tree6df1767574053f61aab918d22374ef15465478ed /src/kernel
parent917833cbe99c2083895f7ca28af218270de964d1 (diff)
shared: rename ufs_request to better fit its role in userland
The old name could have suggested that it held a response to a request received by fs_wait. The new name is unfortunately very similar to the `struct vfs_request` already used internally in the kernel, but it's better at conveying that it contains a filesystem request yet to be handled. vfs_request - virtual filesystem request (a bad name in hindsight) ufs_request - user filesystem request
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/proc.h2
-rw-r--r--src/kernel/syscalls.c2
-rw-r--r--src/kernel/vfs/request.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 0ae811e..eb39b51 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -32,7 +32,7 @@ struct process {
struct {
char __user *buf;
size_t max_len;
- struct fs_wait_response __user *res;
+ struct ufs_request __user *res;
} awaited_req; // PS_WAITS4REQUEST
struct {
struct handle *pipe;
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index 62acf5f..aa3c28f 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -258,7 +258,7 @@ long _syscall_close(handle_t hid) {
SYSCALL_RETURN(0);
}
-handle_t _syscall_fs_wait(char __user *buf, long max_len, struct fs_wait_response __user *res) {
+handle_t _syscall_fs_wait(char __user *buf, long max_len, struct ufs_request __user *res) {
struct vfs_backend *backend = process_current->controlled;
// TODO can be used to tell if you're init
if (!backend) SYSCALL_RETURN(-1);
diff --git a/src/kernel/vfs/request.c b/src/kernel/vfs/request.c
index 39834d5..24d5dac 100644
--- a/src/kernel/vfs/request.c
+++ b/src/kernel/vfs/request.c
@@ -95,7 +95,7 @@ void vfs_backend_tryaccept(struct vfs_backend *backend) {
static void vfs_backend_user_accept(struct vfs_request *req) {
struct process *handler;
- struct fs_wait_response res = {0};
+ struct ufs_request res = {0};
struct virt_cpy_error cpyerr;
int len;