Hi

sched_get_priority_min() is a linux system call available in 2.6 kernel series 
related with the new linux scheduler.


GET_PRIORITY_MAX(2)                   Linux Programmer's Manual                 
 
GET_PRIORITY_MAX(2)

NAME
       sched_get_priority_max, sched_get_priority_min  - get static priority 
range

SYNOPSIS
       #include <sched.h>

       int sched_get_priority_max(int policy);

       int sched_get_priority_min(int policy);

DESCRIPTION
       sched_get_priority_max  returns the maximum priority value that can be 
used with the schedul-
       ing algorithm identified by policy.   sched_get_priority_min  returns  
the  minimum  priority
       value  that  can be used with the scheduling algorithm identified by 
policy. Supported policy
       values are SCHED_FIFO, SCHED_RR, and SCHED_OTHER.

------------------------

If it is only the problem, it should be easy adapt to OpenBSD

El Jueves 26 Mayo 2005 16:45, Olaf Schreck escribis:
> Hi,
>
> I'm trying to build fprobe (NetFlow probe, http://fprobe.sourceforge.net/)
> on 3.7/i386, but linking bombs out with undefined references to
> sched_get_priority_{min,max}.
>
> I see these declared in /usr/include/sched.h but I can't find the lib
> to link with.  Passing -lpthread doesn't help.  nm /usr/lib/* | grep ...
> doesn't show.  Found a few references to this in the gcc/libstdc++ and
> compat_linux src, but this is getting too deep for me..
>
> This is only used to set 2 vars so it's easily faked if I knew what to
> put there:
>       sched_min = sched_get_priority_min(SCHED);
>       sched_max = sched_get_priority_max(SCHED);
>
> Anyone could shine a light?  Thanks in advance.
>
>
> ciao,
> chakl

Reply via email to