Home
last modified time | relevance | path

Searched refs:rtprio (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/tools/regression/priv/
H A Dpriv_sched_rtprio.c105 struct rtprio rtp; in priv_sched_rtprio_curproc_normal()
110 error = rtprio(RTP_SET, 0, &rtp); in priv_sched_rtprio_curproc_normal()
128 struct rtprio rtp; in priv_sched_rtprio_curproc_idle()
133 error = rtprio(RTP_SET, 0, &rtp); in priv_sched_rtprio_curproc_idle()
151 struct rtprio rtp; in priv_sched_rtprio_curproc_realtime()
156 error = rtprio(RTP_SET, 0, &rtp); in priv_sched_rtprio_curproc_realtime()
174 struct rtprio rtp; in priv_sched_rtprio_myproc_normal()
179 error = rtprio(RTP_SET, 0, &rtp); in priv_sched_rtprio_myproc_normal()
197 struct rtprio rtp; in priv_sched_rtprio_myproc_idle()
202 error = rtprio(RTP_SET, 0, &rtp); in priv_sched_rtprio_myproc_idle()
[all …]
/freebsd/sys/sys/
H A Drtprio.h74 struct rtprio { struct
81 int rtp_to_pri(struct rtprio *, struct thread *); argument
82 void pri_to_rtp(struct thread *, struct rtprio *);
90 int rtprio(int, __pid_t, struct rtprio *);
91 int rtprio_thread(int, __lwpid_t, struct rtprio *);
H A Dthr.h58 struct rtprio *rtp; /* Real-time scheduling priority */
/freebsd/usr.sbin/rtprio/
H A DMakefile1 PROG= rtprio
2 LINKS= ${BINDIR}/rtprio ${BINDIR}/idprio
3 MLINKS= rtprio.1 idprio.1
H A Drtprio.c54 struct rtprio rtp; in main()
73 if (rtprio(RTP_LOOKUP, proc, &rtp) != 0) in main()
113 if (rtprio(RTP_SET, proc, &rtp) != 0) in main()
/freebsd/lib/libthr/thread/
H A Dthr_kern.c66 _rtp_to_schedparam(const struct rtprio *rtp, int *policy, in _rtp_to_schedparam()
88 struct rtprio *rtp) in _schedparam_to_rtp()
111 struct rtprio rtp; in _thr_getscheduler()
124 struct rtprio rtp; in _thr_setscheduler()
H A Dthr_create.c65 struct rtprio rtp; in _pthread_create()
H A Dthr_private.h851 int _rtp_to_schedparam(const struct rtprio *rtp, int *policy,
854 struct rtprio *rtp) __hidden;
/freebsd/sys/kern/
H A Dksched.c108 struct rtprio rtp; in getscheduler()
143 struct rtprio rtp; in ksched_getparam()
173 struct rtprio rtp; in ksched_setscheduler()
H A Dkern_resource.c294 struct rtprio *rtp;
301 struct rtprio rtp; in sys_rtprio_thread()
307 cierror = copyin(uap->rtp, &rtp, sizeof(struct rtprio)); in sys_rtprio_thread()
328 return (copyout(&rtp, uap->rtp, sizeof(struct rtprio))); in sys_rtprio_thread()
375 struct rtprio *rtp;
383 struct rtprio rtp; in sys_rtprio()
388 cierror = copyin(uap->rtp, &rtp, sizeof(struct rtprio)); in sys_rtprio()
416 struct rtprio rtp2; in sys_rtprio()
431 return (copyout(&rtp, uap->rtp, sizeof(struct rtprio))); in sys_rtprio()
473 rtp_to_pri(struct rtprio *rtp, struct thread *td) in rtp_to_pri()
[all …]
H A Dkern_thr.c185 struct rtprio rtp, *rtpp; in kern_thr_new()
193 error = copyin(param->rtp, &rtp, sizeof(struct rtprio)); in kern_thr_new()
206 thread_create(struct thread *td, struct rtprio *rtp, in thread_create()
H A Dkern_poll.c555 struct rtprio rtp; in poll_idle()
/freebsd/tools/test/stress2/misc/
H A Dmlockall2.sh125 struct rtprio rtp;
137 if (rtprio(RTP_SET, 0, &rtp) == -1)
/freebsd/lib/libutil/
H A Dlogin_class.c491 struct rtprio rtp; in setclasspriority()
496 rc = rtprio(RTP_SET, 0, &rtp); in setclasspriority()
498 struct rtprio rtp; in setclasspriority()
503 rc = rtprio(RTP_SET, 0, &rtp); in setclasspriority()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dsched.h226 struct rtprio rtp; in sched_set_fifo()
236 struct rtprio rtp; in sched_set_fifo_low()
/freebsd/usr.sbin/watchdogd/
H A Dwatchdogd.c120 struct rtprio rtp; in main()
135 if (rtprio(RTP_SET, 0, &rtp) == -1) in main()
/freebsd/usr.sbin/virtual_oss/virtual_bt_speaker/
H A Dbt_speaker.c452 struct rtprio rtp = {}; in main()
474 if (rtprio(RTP_SET, getpid(), &rtp) != 0) { in main()
/freebsd/lib/libsys/
H A DMakefile.sys316 rtprio.2 \
518 MLINKS+=rtprio.2 rtprio_thread.2
H A D_libsys.h45 struct rtprio;
169 typedef int (__sys_rtprio_t)(int, pid_t, struct rtprio *);
354 typedef int (__sys_rtprio_thread_t)(int, lwpid_t, struct rtprio *);
579 int __sys_rtprio(int function, pid_t pid, struct rtprio * rtp);
764 int __sys_rtprio_thread(int function, lwpid_t lwpid, struct rtprio * rtp);
H A DSymbol.sys.map187 rtprio;
/freebsd/contrib/ntp/ntpd/
H A Drefclock_gpsvme.c16 #include <sys/rtprio.h> /* may already be included above */
135 rtprio(0,120); /* set real time priority */ in psc_start()
H A Dntpd.c67 # include <sys/rtprio.h>
527 struct rtprio srtp; in set_process_priority()
532 if (rtprio(RTP_SET, getpid(), &srtp) < 0) in set_process_priority()
533 msyslog(LOG_ERR, "rtprio() error: %m"); in set_process_priority()
539 if (rtprio(0, 120) < 0) in set_process_priority()
540 msyslog(LOG_ERR, "rtprio() error: %m"); in set_process_priority()
/freebsd/usr.sbin/
H A DMakefile76 rtprio \
/freebsd/tests/sys/audit/
H A Dprocess-control.c1280 struct rtprio rtp; in ATF_TC_BODY()
1285 ATF_REQUIRE_EQ(0, rtprio(RTP_LOOKUP, 0, &rtp)); in ATF_TC_BODY()
1308 ATF_REQUIRE_EQ(-1, rtprio(-1, -1, NULL)); in ATF_TC_BODY()
/freebsd/sys/compat/linux/
H A Dlinux_misc.c2706 linux_up_rtprio_if(struct thread *td1, struct rtprio *rtp) in linux_up_rtprio_if()
2708 struct rtprio rtp2; in linux_up_rtprio_if()
2722 linux_rtprio2ioprio(struct rtprio *rtp) in linux_rtprio2ioprio()
2748 linux_ioprio2rtprio(int ioprio, struct rtprio *rtp) in linux_ioprio2rtprio()
2775 struct rtprio rtp; in linux_ioprio_get()
2876 struct rtprio rtp; in linux_ioprio_set()

12