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

This commit is contained in:
2026-02-18 23:16:03 +01:00
parent ae0a6024da
commit f103bdd739
39 changed files with 376 additions and 223 deletions

View File

@@ -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