Lines Matching defs:rtprmsp
583 * pointed to by rtprmsp.
590 rtparms_t *rtprmsp = (rtparms_t *)prmsp;
598 if ((rtprmsp->rt_pri < 0 || rtprmsp->rt_pri > rt_maxpri) &&
599 rtprmsp->rt_pri != RT_NOCHANGE)
602 cflags = (rtprmsp->rt_pri != RT_NOCHANGE ? RT_DOPRI : 0);
604 if ((rtprmsp->rt_tqsecs == 0 && rtprmsp->rt_tqnsecs == 0) ||
605 rtprmsp->rt_tqnsecs >= NANOSEC)
608 if (rtprmsp->rt_tqnsecs != RT_NOCHANGE)
611 if (rtprmsp->rt_tqnsecs >= 0) {
612 if ((ticks = SEC_TO_TICK((longlong_t)rtprmsp->rt_tqsecs) +
613 NSEC_TO_TICK_ROUNDUP(rtprmsp->rt_tqnsecs)) > INT_MAX)
616 ((rtkparms_t *)rtprmsp)->rt_tqntm = (int)ticks;
618 if (rtprmsp->rt_tqnsecs != RT_NOCHANGE &&
619 rtprmsp->rt_tqnsecs != RT_TQINF &&
620 rtprmsp->rt_tqnsecs != RT_TQDEF)
623 ((rtkparms_t *)rtprmsp)->rt_tqntm = rtprmsp->rt_tqnsecs;
625 ((rtkparms_t *)rtprmsp)->rt_cflags = cflags;
633 * structure vaparmsp and put them in the buffer pointed to by rtprmsp.
645 rtkparms_t *rtprmsp = (rtkparms_t *)prmsp;
654 rtprmsp->rt_cflags = 0;
665 rtprmsp->rt_cflags |= RT_DOPRI;
666 rtprmsp->rt_pri = (pri_t)vpp->pc_parm;
667 if (rtprmsp->rt_pri < 0 || rtprmsp->rt_pri > rt_maxpri)
674 rtprmsp->rt_cflags |= RT_DOTQ;
681 rtprmsp->rt_cflags |= RT_DOTQ;
688 rtprmsp->rt_cflags |= RT_DOSIG;
689 rtprmsp->rt_tqsig = (int)vpp->pc_parm;
690 if (rtprmsp->rt_tqsig < 0 || rtprmsp->rt_tqsig >= NSIG)
703 rtprmsp->rt_pri = 0;
704 rtprmsp->rt_tqntm = RT_TQDEF;
705 rtprmsp->rt_tqsig = 0;
706 rtprmsp->rt_cflags = RT_DOPRI | RT_DOTQ | RT_DOSIG;
707 } else if ((rtprmsp->rt_cflags & RT_DOTQ) != 0) {
716 rtprmsp->rt_tqntm = (int)ticks;
720 rtprmsp->rt_tqntm = nsecs;