Redesign reschedule points, allow one operation to reschedule many cpus at once
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m12s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m12s
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
#ifndef _KERNEL_PROC_MAIL_H
|
||||
#define _KERNEL_PROC_MAIL_H
|
||||
|
||||
#include <libk/list.h>
|
||||
#include <libk/std.h>
|
||||
#include <proc/suspension_q.h>
|
||||
|
||||
struct proc;
|
||||
struct proc_resource;
|
||||
struct cpu;
|
||||
struct reschedule_ctx;
|
||||
|
||||
struct proc_mail {
|
||||
struct proc_resource* resource;
|
||||
@@ -17,10 +19,12 @@ struct proc_mail {
|
||||
size_t pending_mesg_size;
|
||||
};
|
||||
|
||||
bool proc_cleanup_resource_mail (struct proc_resource* resource, struct cpu** reschedule_cpu);
|
||||
bool proc_mail_send (struct proc* proc, struct proc_mail* mail, struct cpu** reschedule_cpu,
|
||||
void proc_cleanup_resource_mail (struct proc_resource* resource, struct reschedule_ctx* rctx);
|
||||
|
||||
void proc_mail_send (struct proc* proc, struct proc_mail* mail, struct reschedule_ctx* rctx,
|
||||
void* data, size_t data_size);
|
||||
bool proc_mail_receive (struct proc* proc, struct proc_mail* mail, struct cpu** reschedule_cpu,
|
||||
|
||||
void proc_mail_receive (struct proc* proc, struct proc_mail* mail, struct reschedule_ctx* rctx,
|
||||
void* recv_buffer, size_t recv_size);
|
||||
|
||||
#endif // _KERNEL_PROC_MAIL_H
|
||||
|
||||
Reference in New Issue
Block a user