Skip to content

Commit

Permalink
Patch regarding #35
Browse files Browse the repository at this point in the history
  • Loading branch information
MirMohammadd committed Mar 21, 2024
1 parent 46d6f75 commit 2e67802
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions include/proc/sched.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

/**
* MIT License
*
* Copyright (c) 2024 Heisenberg
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* @author Heisenberg
* @file sched.h
*/
#ifndef SCHED_H
#define SCHED_H

#include <proc/proc.h>

process_t *get_cur_proc();
process_t *get_proc_by_id(int id);
uint32_t schedule(uint32_t esp);
void sched_add_proc(process_t *proc);
void sched_remove_proc(int id);
void sched_init();
int get_nproc();
void print_procs();

#endif

0 comments on commit 2e67802

Please sign in to comment.