diff options
author | Anton Kling <anton@kling.gg> | 2024-02-19 18:52:30 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-02-19 18:52:30 +0100 |
commit | 239e33019117f4ab59dd26550d7969e45c290166 (patch) | |
tree | de180effd804573d07acf8ac495fa7defc1edd70 /kernel/halts.h | |
parent | 61c443579150a4714c132ecb1ac18779535f91c9 (diff) |
Kernel/VFS: Cleanup of file descriptor halts
Diffstat (limited to 'kernel/halts.h')
-rw-r--r-- | kernel/halts.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/kernel/halts.h b/kernel/halts.h index 11e47ff..ed0637f 100644 --- a/kernel/halts.h +++ b/kernel/halts.h @@ -1,21 +1,7 @@ #ifndef HALTS_H #define HALTS_H #include <fs/vfs.h> +#include <sched/scheduler.h> #include <typedefs.h> - -typedef struct { - u8 *ptr; - u8 active; -} halt_t; - -int create_read_fdhalt(vfs_fd_t *fd); -int create_read_inode_halt(vfs_inode_t *inode); -void unset_read_fdhalt(int i); -int create_write_fdhalt(vfs_fd_t *fd); -int create_write_inode_halt(vfs_inode_t *inode); -void unset_write_fdhalt(int i); -int create_disconnect_fdhalt(vfs_fd_t *fd); -void unset_disconnect_fdhalt(int i); -int isset_fdhalt(vfs_inode_t *read_halts[], vfs_inode_t *write_halts[], - vfs_inode_t *disconnect_halts[]); +int isset_fdhalt(process_t *p); #endif |