sched: schedule after vfs_read error -EGAIN

This commit is contained in:
Michael Shaw 2024-06-17 13:03:53 -04:00
commit 86041e90e4
5 changed files with 28 additions and 1 deletions

15
include/kernel/char.h Normal file
View file

@ -0,0 +1,15 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _CHAR_H_
#define _CHAR_H_
#include <kernel/common.h>
#include <kernel/proc.h>
struct char_queue {
char *buf;
size_t size;
struct proc *proc;
struct char_queue *next;
};
#endif /* _CHAR_H_ */

View file

@ -73,6 +73,7 @@ struct proc *proc_get(pid_t pid);
pid_t getpid();
void proc_term(pid_t pid);
struct proc *proc_find(pid_t pid);
void proc_save_state();
void proc_set_current(pid_t pid);
void proc_init(unsigned num_cpus);
void schedule();