Implement streams IPC mechanism
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m47s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m47s
This commit is contained in:
@@ -6,10 +6,12 @@
|
||||
#include <libk/std.h>
|
||||
#include <proc/mail.h>
|
||||
#include <proc/mutex.h>
|
||||
#include <proc/stream.h>
|
||||
#include <sync/spin_lock.h>
|
||||
|
||||
#define PR_MUTEX 0
|
||||
#define PR_MAIL 1
|
||||
#define PR_MUTEX 0
|
||||
#define PR_MAIL 1
|
||||
#define PR_STREAM 2
|
||||
|
||||
struct proc;
|
||||
struct procgroup;
|
||||
@@ -24,6 +26,7 @@ struct proc_resource {
|
||||
union {
|
||||
struct proc_mutex mutex;
|
||||
struct proc_mail mail;
|
||||
struct proc_stream stream;
|
||||
} u;
|
||||
struct {
|
||||
void (*cleanup) (struct proc_resource* resource, struct reschedule_ctx* rctx);
|
||||
@@ -36,6 +39,8 @@ struct proc_resource* proc_create_resource_mutex (struct procgroup* procgroup);
|
||||
|
||||
struct proc_resource* proc_create_resource_mail (struct procgroup* procgroup);
|
||||
|
||||
struct proc_resource* proc_create_resource_stream (struct procgroup* procgroup);
|
||||
|
||||
void proc_delete_resource (struct procgroup* procgroup, struct proc_resource* resource,
|
||||
struct reschedule_ctx* rctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user