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:
@@ -14,6 +14,7 @@
|
||||
struct proc;
|
||||
struct procgroup;
|
||||
struct cpu;
|
||||
struct reschedule_ctx;
|
||||
|
||||
struct proc_resource {
|
||||
int type;
|
||||
@@ -25,13 +26,16 @@ struct proc_resource {
|
||||
struct proc_mail mail;
|
||||
} u;
|
||||
struct {
|
||||
bool (*cleanup) (struct proc_resource* resource, struct cpu** reschedule_cpu);
|
||||
void (*cleanup) (struct proc_resource* resource, struct reschedule_ctx* rctx);
|
||||
} ops;
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
void proc_delete_resource (struct proc_resource* resource, struct reschedule_ctx* rctx);
|
||||
|
||||
#endif // _KERNEL_PROC_RESOURCE_H
|
||||
|
||||
Reference in New Issue
Block a user