/freebsd-current/usr.sbin/rtprio/ |
H A D | rtprio.c | 54 struct rtprio rtp; local 61 rtp.type = RTP_PRIO_REALTIME; 63 rtp.type = RTP_PRIO_IDLE; 73 if (rtprio(RTP_LOOKUP, proc, &rtp) != 0) 75 switch (rtp.type) { 78 warnx("realtime priority %d", rtp.prio); 84 warnx("idle priority %d", rtp.prio); 87 errx(1, "invalid priority type %d", rtp.type); 95 rtp.type = RTP_PRIO_NORMAL; 96 rtp [all...] |
/freebsd-current/tools/regression/priv/ |
H A D | priv_sched_rtprio.c | 105 struct rtprio rtp; local 108 rtp.type = RTP_PRIO_NORMAL; 109 rtp.prio = 0; 110 error = rtprio(RTP_SET, 0, &rtp); 128 struct rtprio rtp; local 131 rtp.type = RTP_PRIO_IDLE; 132 rtp.prio = 0; 133 error = rtprio(RTP_SET, 0, &rtp); 151 struct rtprio rtp; local 154 rtp 174 struct rtprio rtp; local 197 struct rtprio rtp; local 220 struct rtprio rtp; local 243 struct rtprio rtp; local 266 struct rtprio rtp; local 289 struct rtprio rtp; local [all...] |
/freebsd-current/lib/libthr/thread/ |
H A D | thr_kern.c | 66 _rtp_to_schedparam(const struct rtprio *rtp, int *policy, argument 69 switch(rtp->type) { 72 param->sched_priority = RTP_PRIO_MAX - rtp->prio; 76 param->sched_priority = RTP_PRIO_MAX - rtp->prio; 88 struct rtprio *rtp) 92 rtp->type = RTP_PRIO_REALTIME; 93 rtp->prio = RTP_PRIO_MAX - param->sched_priority; 96 rtp->type = RTP_PRIO_FIFO; 97 rtp->prio = RTP_PRIO_MAX - param->sched_priority; 101 rtp 87 _schedparam_to_rtp(int policy, const struct sched_param *param, struct rtprio *rtp) argument 111 struct rtprio rtp; local 124 struct rtprio rtp; local [all...] |
H A D | thr_create.c | 59 struct rtprio rtp; local 167 param.rtp = NULL; 171 &sched_param, &rtp); 172 param.rtp = &rtp;
|
H A D | thr_private.h | 844 int _rtp_to_schedparam(const struct rtprio *rtp, int *policy, 847 struct rtprio *rtp) __hidden;
|
/freebsd-current/sys/kern/ |
H A D | ksched.c | 108 struct rtprio rtp; local 112 pri_to_rtp(td, &rtp); 113 switch (rtp.type) { 143 struct rtprio rtp; local 145 pri_to_rtp(td, &rtp); 146 if (RTP_PRIO_IS_REALTIME(rtp.type)) 147 param->sched_priority = rtpprio_to_p4prio(rtp.prio); 149 if (PRI_MIN_TIMESHARE < rtp.prio) 157 param->sched_priority = tsprio_to_p4prio(rtp.prio); 173 struct rtprio rtp; local [all...] |
H A D | kern_resource.c | 292 struct rtprio *rtp; member in struct:rtprio_thread_args 299 struct rtprio rtp; local 305 cierror = copyin(uap->rtp, &rtp, sizeof(struct rtprio)); 324 pri_to_rtp(td1, &rtp); 326 return (copyout(&rtp, uap->rtp, sizeof(struct rtprio))); 349 if (RTP_PRIO_BASE(rtp.type) == RTP_PRIO_REALTIME && 352 if (RTP_PRIO_BASE(rtp.type) == RTP_PRIO_IDLE && 356 error = rtp_to_pri(&rtp, td 373 struct rtprio *rtp; member in struct:rtprio_args 381 struct rtprio rtp; local 471 rtp_to_pri(struct rtprio *rtp, struct thread *td) argument 514 pri_to_rtp(struct thread *td, struct rtprio *rtp) argument [all...] |
H A D | kern_thr.c | 178 struct rtprio rtp, *rtpp; local 182 if (param->rtp != 0) { 183 error = copyin(param->rtp, &rtp, sizeof(struct rtprio)); 186 rtpp = &rtp; 192 thread_create(struct thread *td, struct rtprio *rtp, argument 201 if (rtp != NULL) { 202 switch(rtp->type) { 208 if (rtp->prio > RTP_PRIO_MAX) 212 rtp [all...] |
H A D | kern_poll.c | 555 struct rtprio rtp; local 557 rtp.prio = RTP_PRIO_MAX; /* lowest priority */ 558 rtp.type = RTP_PRIO_IDLE; 560 rtp_to_pri(&rtp, td);
|
H A D | tty.c | 2101 ttyhook_register(struct tty **rtp, struct proc *p, int fd, struct ttyhook *th, argument 2169 *rtp = tp;
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | mlockall2.sh | 125 struct rtprio rtp; 135 rtp.type = RTP_PRIO_REALTIME; 136 rtp.prio = 0; 137 if (rtprio(RTP_SET, 0, &rtp) == -1)
|
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | sched.h | 225 struct rtprio rtp; local 227 rtp.prio = (RTP_PRIO_MIN + RTP_PRIO_MAX) / 2; 228 rtp.type = RTP_PRIO_FIFO; 229 rtp_to_pri(&rtp, t->task_thread); 235 struct rtprio rtp; local 237 rtp.prio = RTP_PRIO_MAX; /* lowest priority */ 238 rtp.type = RTP_PRIO_FIFO; 239 rtp_to_pri(&rtp, t->task_thread);
|
/freebsd-current/sys/sys/ |
H A D | thr.h | 57 struct rtprio *rtp; /* Real-time scheduling priority */ member in struct:thr_param
|
H A D | proc.h | 1271 int thread_create(struct thread *td, struct rtprio *rtp,
|
/freebsd-current/lib/libutil/ |
H A D | login_class.c | 489 struct rtprio rtp; local 491 rtp.type = RTP_PRIO_IDLE; 493 rtp.prio = p > RTP_PRIO_MAX ? RTP_PRIO_MAX : p; 494 rc = rtprio(RTP_SET, 0, &rtp); 496 struct rtprio rtp; local 498 rtp.type = RTP_PRIO_REALTIME; 500 rtp.prio = p < RTP_PRIO_MIN ? RTP_PRIO_MIN : p; 501 rc = rtprio(RTP_SET, 0, &rtp);
|
/freebsd-current/sys/compat/linux/ |
H A D | linux_misc.c | 2700 linux_up_rtprio_if(struct thread *td1, struct rtprio *rtp) argument 2705 if (rtp2.type < rtp->type || 2706 (rtp2.type == rtp->type && 2707 rtp2.prio < rtp->prio)) { 2708 rtp->type = rtp2.type; 2709 rtp->prio = rtp2.prio; 2716 linux_rtprio2ioprio(struct rtprio *rtp) argument 2720 switch (rtp->type) { 2726 prio = rtp->prio / LINUX_PRIO_DIVIDER; 2730 prio = rtp 2742 linux_ioprio2rtprio(int ioprio, struct rtprio *rtp) argument 2769 struct rtprio rtp; local 2870 struct rtprio rtp; local [all...] |
/freebsd-current/usr.sbin/watchdogd/ |
H A D | watchdogd.c | 120 struct rtprio rtp; local 133 rtp.type = RTP_PRIO_REALTIME; 134 rtp.prio = 0; 135 if (rtprio(RTP_SET, 0, &rtp) == -1)
|
/freebsd-current/sys/dev/isp/ |
H A D | isp_pci.c | 199 int rtp; member in struct:isp_pcisoftc 480 pcs->rgd = pcs->rtp = 0; 528 pcs->rtp = SYS_RES_MEMORY; 530 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, &pcs->rgd, 541 pcs->rtp = SYS_RES_MEMORY; 543 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, &pcs->rgd, 546 pcs->rtp = SYS_RES_IOPORT; 548 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, 558 (pcs->rtp == SYS_RES_IOPORT)? "I/O" : "Memory"); 650 (void) bus_release_resource(dev, pcs->rtp, pc [all...] |
/freebsd-current/contrib/nvi/ex/ |
H A D | ex_cscope.c | 463 TAG *rtp; local 483 rtp = NULL; 491 CALLOC_GOTO(sp, rtp, 1, sizeof(TAG)); 492 TAILQ_INSERT_HEAD(rtqp->tagq, rtp, q); 493 rtqp->current = rtp; 533 nomatch: free(rtp); 591 free(rtp);
|
H A D | ex_tag.c | 709 TAG *rtp; local 723 rtp = NULL; 731 CALLOC_GOTO(sp, rtp, 1, sizeof(TAG)); 732 TAILQ_INSERT_HEAD(rtqp->tagq, rtp, q); 733 rtqp->current = rtp; 803 free(rtp);
|
/freebsd-current/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_types.c | 745 const void *ltp, *rtp; local 761 (rtp = ctf_lookup_by_id(&rfp, rtype)) == NULL || 762 strcmp(ctf_type_rname(lfp, ltp), ctf_type_rname(rfp, rtp)) != 0)
|
/freebsd-current/sys/compat/freebsd32/ |
H A D | freebsd32.h | 319 uint32_t rtp; member in struct:thr_param32
|
H A D | freebsd32_misc.c | 3244 param.rtp = PTRIN(param32.rtp);
|
/freebsd-current/tests/sys/audit/ |
H A D | process-control.c | 1280 struct rtprio rtp; local 1285 ATF_REQUIRE_EQ(0, rtprio(RTP_LOOKUP, 0, &rtp));
|
/freebsd-current/lib/libsys/ |
H A D | _libsys.h | 567 int __sys_rtprio(int function, pid_t pid, struct rtprio * rtp); 752 int __sys_rtprio_thread(int function, lwpid_t lwpid, struct rtprio * rtp);
|