Home
last modified time | relevance | path

Searched refs:prio (Results 1 – 25 of 37) sorted by relevance

12

/titanic_50/usr/src/lib/libbc/libc/compat/sys5/
H A Dnice.c41 register int prio; local
52 prio = getpriority(PRIO_PROCESS, 0);
53 if (prio == -1 && errno)
55 prio += incr;
56 if (prio < -20)
57 prio = -20;
58 else if (prio > 19)
59 prio = 19;
60 if (setpriority(PRIO_PROCESS, 0, prio) == -1) {
71 return (prio);
/titanic_50/usr/src/lib/libc/port/threads/
H A Dpthread.c49 _thr_setparam(pthread_t tid, int policy, int prio) in _thr_setparam() argument
65 if (prio > ulwp->ul_epri) in _thr_setparam()
68 ulwp->ul_pri = prio; in _thr_setparam()
69 } else if ((cid = setparam(P_LWPID, tid, policy, prio)) == -1) { in _thr_setparam()
75 ulwp->ul_pri = prio; in _thr_setparam()
109 ap->prio < pccp->pcc_primin || ap->prio > pccp->pcc_primax)) in pthread_create()
118 ap->prio != (self->ul_epri? self->ul_epri : self->ul_pri))) in pthread_create()
124 error = _thr_setparam(tid, ap->policy, ap->prio); in pthread_create()
253 thr_setprio(thread_t tid, int prio) in thr_setprio() argument
265 if (param.sched_priority == prio) /* no change */ in thr_setprio()
[all …]
H A Dpthr_attr.c375 ap->prio = param->sched_priority; in pthread_attr_setschedparam()
394 param->sched_priority = ap->prio; in pthread_attr_getschedparam()
/titanic_50/usr/src/lib/libc/port/rt/
H A Dsched.c103 pri_t prio; in get_info_by_policy() local
150 prio = ((tsinfo_t *)pccp->pcc_info.pc_clinfo)->ts_maxupri; in get_info_by_policy()
151 pccp->pcc_primin = -prio; in get_info_by_policy()
152 pccp->pcc_primax = prio; in get_info_by_policy()
156 prio = ((rtinfo_t *)pccp->pcc_info.pc_clinfo)->rt_maxpri; in get_info_by_policy()
158 pccp->pcc_primax = prio; in get_info_by_policy()
248 set_priority(idtype_t idtype, id_t id, int policy, int prio, in set_priority() argument
257 tsp->ts_uprilim = prio; in set_priority()
258 tsp->ts_upri = prio; in set_priority()
268 rtp->rt_pri = prio; in set_priority()
[all …]
H A Dmqueue.c269 uint_t prio = mqhp->mq_curmaxprio; in mq_getmsg() local
271 mqhp->mq_mask &= ~(1u << prio); in mq_getmsg()
273 for (; prio != 0; prio--) in mq_getmsg()
274 if (mqhp->mq_mask & (1u << prio)) in mq_getmsg()
276 mqhp->mq_curmaxprio = prio; in mq_getmsg()
293 mq_putmsg(mqhdr_t *mqhp, const char *msgp, ssize_t len, uint_t prio) in mq_putmsg() argument
319 headpp = HEAD_PTR(mqhp, prio); in mq_putmsg()
320 tailpp = TAIL_PTR(mqhp, prio); in mq_putmsg()
330 mqhp->mq_mask |= (1u << prio); in mq_putmsg()
331 if (prio > mqhp->mq_curmaxprio) in mq_putmsg()
[all …]
/titanic_50/usr/src/lib/libc/port/gen/
H A Dsetpriority.c149 setpriority(int which, id_t who, int prio) in setpriority() argument
176 if (prio > NZERO - 1) in setpriority()
177 prio = NZERO - 1; in setpriority()
178 else if (prio < -NZERO) in setpriority()
179 prio = -NZERO; in setpriority()
181 pcnice.pc_val = prio; in setpriority()
203 prio < gpcnice.pc_val) { in setpriority()
/titanic_50/usr/src/ucblib/libucb/port/gen/
H A Dnice.c55 int prio; in nice() local
60 prio = getpriority(PRIO_PROCESS, 0); in nice()
61 if (prio == -1 && errno) in nice()
63 if (setpriority(PRIO_PROCESS, 0, prio + incr) == -1) in nice()
/titanic_50/usr/src/cmd/renice/
H A Drenice.c59 static int donice(int which, id_t who, int prio, int increment, char *who_s);
257 int prio; in parse_obsolete_options() local
268 prio = strtol(*argv, &end_ptr, 10); in parse_obsolete_options()
273 if (prio == 20) { in parse_obsolete_options()
314 errs += donice(which, who, prio, RENICE_PRIO_ABSOLUTE, *argv); in parse_obsolete_options()
322 donice(int which, id_t who, int prio, int increment, char *who_s) in donice() argument
335 prio = oldprio + prio; in donice()
337 if (setpriority(which, who, prio) < 0) { in donice()
339 if (errno == EACCES && prio < oldprio) in donice()
/titanic_50/usr/src/lib/libbc/libc/compat/4.1/
H A Dnice.c40 int prio; local
46 prio = getpriority(PRIO_PROCESS, 0);
47 if (prio == -1 && errno)
49 if (setpriority(PRIO_PROCESS, 0, prio + incr) == -1)
/titanic_50/usr/src/lib/librstp/common/
H A Dvector.c33 if (b1->prio < b2->prio) in STP_VECT_compare_bridge_id()
36 if (b1->prio > b2->prio) in STP_VECT_compare_bridge_id()
105 bridge_id->prio = stp_vect_get_short (c_br); in stp_vect_get_bridge_id()
112 stp_vect_set_short (bridge_id->prio, c_br); in stp_vect_set_bridge_id()
152 (unsigned long) br_id->prio, in STP_VECT_br_id_print()
H A Dstp_in.c262 if (this->BrId.prio != DEF_BR_PRIO) { in STP_IN_stpm_get_cfg()
265 uid_cfg->bridge_priority = this->BrId.prio; in STP_IN_stpm_get_cfg()
768 prev_prio = this->BrId.prio; in STP_IN_stpm_set_cfg()
769 this->BrId.prio = old.bridge_priority; in STP_IN_stpm_set_cfg()
772 this->BrId.prio = prev_prio; in STP_IN_stpm_set_cfg()
1003 *priority = this->BrId.prio; in STP_IN_get_bridge_id()
H A Dvector.h32 unsigned short prio; member
H A Duid_stp.h38 unsigned short prio; member
H A Dstpmgmt.c47 this->BrId.prio = init_cfg.bridge_priority; in STP_IN_stpm_create()
/titanic_50/usr/src/cmd/ldmad/
H A Dldma_log.c96 ldma_log_msg(int prio, char *module, char *fmt, va_list vap) in ldma_log_msg() argument
113 log_prio_str[prio], msgbuf); in ldma_log_msg()
115 if (ldma_daemon && prio != LOG_DEBUG) { in ldma_log_msg()
117 syslog(prio, msgbuf); in ldma_log_msg()
/titanic_50/usr/src/cmd/drd/
H A Ddrd_log.c96 drd_log_msg(int prio, char *fmt, va_list vap) in drd_log_msg() argument
111 (void) fprintf(stderr, "%s%s%s\n", timebuf, log_prio_str[prio], msgbuf); in drd_log_msg()
114 syslog(prio, msgbuf); in drd_log_msg()
/titanic_50/usr/src/cmd/praudit/
H A DMakefile32 SRCS = format.c main.c token.c toktable.c printaudit.c prio.c $(XLATEDIR)/adt_xlate.c
33 OBJS = format.o main.o token.o toktable.o printaudit.o prio.o adt_xlate.o
/titanic_50/usr/src/cmd/sh/
H A Dfunc.c40 static void prio(struct ionod *iop);
260 prio(comptr(t)->comio); in prf()
265 prio(forkptr(t)->forkio); in prf()
420 prio(struct ionod *iop) in prio() function
/titanic_50/usr/src/cmd/cmd-inet/lib/nwamd/
H A Devents.c737 int64_t prio = INVALID_PRIORITY_GROUP; in nwamd_activate_ncus() local
741 selected = nwamd_ncp_check_priority_group(&prio); in nwamd_activate_ncus()
747 nwamd_ncp_activate_priority_group(prio); in nwamd_activate_ncus()
748 nwamd_ncp_deactivate_priority_group_all(prio + 1); in nwamd_activate_ncus()
756 while (nwamd_ncp_find_next_priority_group(++oldprio, &prio)) { in nwamd_activate_ncus()
757 nwamd_ncp_activate_priority_group(prio); in nwamd_activate_ncus()
758 oldprio = prio; in nwamd_activate_ncus()
/titanic_50/usr/src/uts/common/os/
H A Dcpu_event.c503 cpu_idle_register_callback(uint_t prio, cpu_idle_callback_t *cbp, in cpu_idle_register_callback() argument
521 } else if (prio < CPU_IDLE_CB_PRIO_LOW_BASE || in cpu_idle_register_callback()
522 prio >= CPU_IDLE_CB_PRIO_RESV_BASE) { in cpu_idle_register_callback()
524 "!cpu_event: priority 0x%x out of range.", prio); in cpu_idle_register_callback()
535 if (prio != CPU_IDLE_CB_PRIO_DYNAMIC) { in cpu_idle_register_callback()
538 if (cip->priority == prio) { in cpu_idle_register_callback()
541 "priority 0x%x already exists.", prio); in cpu_idle_register_callback()
550 cip->priority = prio; in cpu_idle_register_callback()
/titanic_50/usr/src/uts/common/disp/
H A Dpriocntl.c1071 int prio = 0; in setthreadprio() local
1101 if ((error = CL_DOPRIO(tp, CRED(), 0, &prio)) != 0) in setthreadprio()
1109 if (prio > pcprio->pc_val) { in setthreadprio()
1111 pcprio->pc_val = prio; in setthreadprio()
1113 } else if (prio != pcprio->pc_val) { in setthreadprio()
1117 incr = pcprio->pc_val - prio; in setthreadprio()
1118 error = CL_DOPRIO(tp, CRED(), incr, &prio); in setthreadprio()
/titanic_50/usr/src/cmd/mdb/common/mdb/
H A Dmdb_whatis.c390 uint_t prio, uint_t flags) in mdb_whatis_register() argument
417 if (prio > WHATIS_PRIO_MIN) in mdb_whatis_register()
418 prio = WHATIS_PRIO_MIN; in mdb_whatis_register()
426 wcp->wcb_prio = prio; in mdb_whatis_register()
/titanic_50/usr/src/uts/common/fs/zfs/
H A Drrwlock.c163 rrw_enter_read_impl(rrwlock_t *rrl, boolean_t prio, void *tag) in rrw_enter_read_impl() argument
179 refcount_is_zero(&rrl->rr_anon_rcount) && !prio && in rrw_enter_read_impl()
/titanic_50/usr/src/cmd/mandoc/
H A Dmain.c128 int prio, best_prio, synopsis_only; in main() local
387 prio = sec_prios[sec - '1']; in main()
388 if (prio >= best_prio) in main()
390 best_prio = prio; in main()
/titanic_50/usr/src/uts/common/sys/
H A Dcpu_event.h164 extern int cpu_idle_register_callback(uint_t prio, cpu_idle_callback_t *cbp,

12