OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [posix/] [include/] [sched.h] - Rev 1774

Go to most recent revision | Compare with Previous | Blame | View Log

/*  sched.h
 *
 *  sched.h,v 1.5 1999/04/26 18:22:08 joel Exp
 */
 
 
#ifndef __POSIX_SCHEDULING_h
#define __POSIX_SCHEDULING_h
 
#ifdef __cplusplus
extern "C" {
#endif
 
#include <sys/features.h>
 
#if defined(_POSIX_PRIORITY_SCHEDULING)
 
#include <sys/types.h>
#include <time.h>
#include <sys/sched.h>
#include <pthread.h>
 
/*
 *  13.3.1 Set Scheduling Parameters, P1003.1b-1993, p. 252
 *
 */
 
int sched_setparam(
  pid_t                     pid,
  const struct sched_param *param
);
 
/*
 *  13.3.2 Set Scheduling Parameters, P1003.1b-1993, p. 253
 */
 
int sched_getparam(
  pid_t                     pid,
  const struct sched_param *param
);
 
/*
 *  13.3.3 Set Scheduling Policy and Scheduling Parameters, 
 *         P1003.1b-1993, p. 254
 */
 
int sched_setscheduler(
  pid_t                     pid,
  int                       policy,
  const struct sched_param *param
);
 
/*
 *  13.3.4 Get Scheduling Policy, P1003.1b-1993, p. 256
 */
 
int sched_getscheduler(
  pid_t                     pid
);
 
/*
 *  13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258
 */
 
int sched_get_priority_max(
  int  policy
);
 
int sched_get_priority_min(
  int  policy
);
 
int sched_rr_get_interval(
  pid_t             pid,
  struct timespec  *interval
);
 
#endif /* _POSIX_PRIORITY_SCHEDULING */
 
#if defined(_POSIX_THREADS) || defined(_POSIX_PRIORITY_SCHEDULING)
 
/*
 *  13.3.5 Yield Processor, P1003.1b-1993, p. 257
 */
 
int sched_yield( void );
 
#endif /* _POSIX_THREADS or _POSIX_PRIORITY_SCHEDULING */
 
#ifdef __cplusplus
}
#endif
 
#endif
/* end of include file */
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.