Message passing / mail system
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m20s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m20s
This commit is contained in:
@@ -4,10 +4,12 @@
|
||||
#include <libk/list.h>
|
||||
#include <libk/rbtree.h>
|
||||
#include <libk/std.h>
|
||||
#include <proc/mail.h>
|
||||
#include <proc/mutex.h>
|
||||
#include <sync/spin_lock.h>
|
||||
|
||||
#define PR_MUTEX 1
|
||||
#define PR_MUTEX 0
|
||||
#define PR_MAIL 1
|
||||
|
||||
struct proc;
|
||||
struct procgroup;
|
||||
@@ -20,6 +22,7 @@ struct proc_resource {
|
||||
struct rb_node_link resource_tree_link;
|
||||
union {
|
||||
struct proc_mutex mutex;
|
||||
struct proc_mail mail;
|
||||
} u;
|
||||
struct {
|
||||
bool (*cleanup) (struct proc_resource* resource, struct cpu** reschedule_cpu);
|
||||
@@ -28,6 +31,7 @@ struct proc_resource {
|
||||
|
||||
struct proc_resource* proc_find_resource (struct procgroup* procgroup, int rid);
|
||||
struct proc_resource* proc_create_resource_mutex (struct procgroup* procgroup, int rid);
|
||||
struct proc_resource* proc_create_resource_mail (struct procgroup* procgroup, int rid);
|
||||
bool proc_delete_resource (struct proc_resource* resource, struct cpu** reschedule_cpu);
|
||||
|
||||
#endif // _KERNEL_PROC_RESOURCE_H
|
||||
|
||||
Reference in New Issue
Block a user