Deleted Added
full compact
rtprio.h (162497) rtprio.h (163709)
1/*-
2 * Copyright (c) 1994, Henrik Vestergaard Draboel
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
1/*-
2 * Copyright (c) 1994, Henrik Vestergaard Draboel
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * $FreeBSD: head/sys/sys/rtprio.h 162497 2006-09-21 04:18:46Z davidxu $
31 * $FreeBSD: head/sys/sys/rtprio.h 163709 2006-10-26 21:42:22Z jb $
32 */
33
34#ifndef _SYS_RTPRIO_H_
35#define _SYS_RTPRIO_H_
36
37#include <sys/priority.h>
38
39/*

--- 30 unchanged lines hidden (view full) ---

70 * Scheduling class information.
71 */
72struct rtprio {
73 u_short type; /* scheduling class */
74 u_short prio;
75};
76
77#ifdef _KERNEL
32 */
33
34#ifndef _SYS_RTPRIO_H_
35#define _SYS_RTPRIO_H_
36
37#include <sys/priority.h>
38
39/*

--- 30 unchanged lines hidden (view full) ---

70 * Scheduling class information.
71 */
72struct rtprio {
73 u_short type; /* scheduling class */
74 u_short prio;
75};
76
77#ifdef _KERNEL
78#ifdef KSE
78struct ksegrp;
79int rtp_to_pri(struct rtprio *, struct ksegrp *);
80void pri_to_rtp(struct ksegrp *, struct rtprio *);
79struct ksegrp;
80int rtp_to_pri(struct rtprio *, struct ksegrp *);
81void pri_to_rtp(struct ksegrp *, struct rtprio *);
82#else
83struct thread;
84int rtp_to_pri(struct rtprio *, struct thread *);
85void pri_to_rtp(struct thread *, struct rtprio *);
81#endif
82#endif
86#endif
87#endif
88#endif
83
84#ifndef _KERNEL
85#include <sys/cdefs.h>
86
87__BEGIN_DECLS
88int rtprio(int, pid_t, struct rtprio *);
89int rtprio_thread(int, lwpid_t, struct rtprio *);
90__END_DECLS
91#endif /* !_KERNEL */
92#endif /* !_SYS_RTPRIO_H_ */
89
90#ifndef _KERNEL
91#include <sys/cdefs.h>
92
93__BEGIN_DECLS
94int rtprio(int, pid_t, struct rtprio *);
95int rtprio_thread(int, lwpid_t, struct rtprio *);
96__END_DECLS
97#endif /* !_KERNEL */
98#endif /* !_SYS_RTPRIO_H_ */