IPB
>  Man Pages > Unix > FreeBSD 6.2 > Section 2 > rtprio man page

rtprio man page

Section 2 - FreeBSD 6.2 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


RTPRIO(2)                 FreeBSD System Calls Manual                RTPRIO(2)


NAME

     rtprio -- examine or modify a process realtime or idle priority


LIBRARY

     Standard C Library (libc, -lc)


SYNOPSIS

     #include <sys/types.h>
     #include <sys/rtprio.h>

     int
     rtprio(int function, pid_t pid, struct rtprio *rtp);


DESCRIPTION

     The rtprio() system call is used to lookup or change the realtime or idle
     priority of a process.

     The function argument specifies the operation to be performed.
     RTP_LOOKUP to lookup the current priority, and RTP_SET to set the prior-
     ity.  The pid argument specifies the process to be used, 0 for the cur-
     rent process.

     The *rtp argument is a pointer to a struct rtprio which is used to spec-
     ify the priority and priority type.  This structure has the following
     form:

     struct rtprio {
             u_short type;
             u_short prio;
     };

     The value of the type field may be RTP_PRIO_REALTIME for realtime priori-
     ties, RTP_PRIO_NORMAL for normal priorities, and RTP_PRIO_IDLE for idle
     priorities.  The priority specified by the prio field ranges between 0
     and RTP_PRIO_MAX (usually 31).  0 is the highest possible priority.

     Realtime and idle priority is inherited through fork() and exec().

     A realtime process can only be preempted by a process of equal or higher
     priority, or by an interrupt; idle priority processes will run only when
     no other real/normal priority process is runnable.  Higher real/idle pri-
     ority processes preempt lower real/idle priority processes.  Processes of
     equal real/idle priority are run round-robin.


RETURN VALUES

     The rtprio() function returns the value 0 if successful; otherwise the
     value -1 is returned and the global variable errno is set to indicate the
     error.


ERRORS

     The rtprio() system call will fail if

     [EINVAL]           The specified prio was out of range.

     [EPERM]            The calling process is not allowed to set the realtime
                        priority.  Only root is allowed to change the realtime
                        priority of any process, and non-root may only change
                        the idle priority of the current process.

     [ESRCH]            The specified process was not found.


SEE ALSO

     nice(1), ps(1), rtprio(1), setpriority(2), nice(3), renice(8)


AUTHORS

     The original author was Henrik Vestergaard Draboel <hvd@terry.ping.dk>.
     This implementation in FreeBSD was substantially rewritten by David
     Greenman.

FreeBSD 6.2                      July 23, 1994                     FreeBSD 6.2


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 19 20:03:52 BST 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5327 hits)
(openSUSE 10.2)

svn man page (5200 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (4869 hits)
(Solaris 10 11_06)

CPAN man page (4604 hits)
(Suse Linux 10.1)

ssh man page (4341 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2866 hits)
(Solaris 10 11_06)

netcat man page (2705 hits)
(Suse Linux 10.1)

pprosetup man page (2481 hits)
(Solaris 10 11_06)

startproc man page (2470 hits)
(Suse Linux 10.1)

signal man page (2401 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Ski Resorts :: Electronic Circuit Design :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum