sched.h 553 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <Kernel/API/POSIX/sched.h>
  8. #include <sys/cdefs.h>
  9. #include <sys/types.h>
  10. __BEGIN_DECLS
  11. int sched_yield(void);
  12. #define SCHED_FIFO 0
  13. #define SCHED_RR 1
  14. #define SCHED_OTHER 2
  15. #define SCHED_BATCH 3
  16. int sched_get_priority_min(int policy);
  17. int sched_get_priority_max(int policy);
  18. int sched_setparam(pid_t pid, const struct sched_param* param);
  19. int sched_getparam(pid_t pid, struct sched_param* param);
  20. __END_DECLS