Home
last modified time | relevance | path

Searched refs:prp (Results 1 – 25 of 43) sorted by relevance

12

/titanic_41/usr/src/cmd/lp/lib/printers/
H A Dgetprinter.c59 PRINTER *prp; in getprinter() local
140 prp = calloc(sizeof (*prp), 1); in getprinter()
141 prp->name = Strdup(name); in getprinter()
144 prp->printer_types = getlist(NAME_UNKNOWN, LP_WS, LP_SEP); in getprinter()
145 prp->input_types = getlist(NAME_SIMPLE, LP_WS, LP_SEP); in getprinter()
147 prp->modules = getlist(NAME_DEFAULT, LP_WS, LP_SEP); in getprinter()
188 prp->banner = BAN_OPTIONAL; in getprinter()
190 prp->banner = BAN_NEVER; in getprinter()
192 prp->banner = BAN_ALWAYS; in getprinter()
194 prp->banner = BAN_ALWAYS; in getprinter()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dpgrp.c82 register proc_t *prp; local
85 for (prp = pidp->pid_pglink; prp; prp = prp->p_pglink) {
86 mutex_enter(&prp->p_lock);
87 sigtoproc(prp, NULL, sig);
88 mutex_exit(&prp->p_lock);
102 register proc_t *prp; local
106 for (prp = pidp->pid_pglink; prp; prp = prp->p_pglink) {
107 mutex_enter(&prp->p_lock);
108 sigtoproc(prp, NULL, sig);
109 mutex_exit(&prp->p_lock);
[all …]
H A Dsched.c154 proc_t *prp; in sched() local
201 for (prp = practive; prp != NULL; prp = prp->p_next) { in sched()
202 if (not_swappable(prp)) in sched()
208 if (prp->p_swapcnt) { in sched()
215 mutex_enter(&prp->p_lock); in sched()
217 t = prp->p_tlist; in sched()
231 } while ((t = t->t_forw) != prp->p_tlist); in sched()
232 mutex_exit(&prp->p_lock); in sched()
239 prp, proc_pri, proc_time); in sched()
245 swapin_prp = prp; in sched()
[all …]
H A Dpid.c160 pid_allocate(proc_t *prp, pid_t pid, int flags) in pid_allocate() argument
212 pep->pe_proc = prp; in pid_allocate()
213 prp->p_pidp = pidp; in pid_allocate()
214 prp->p_lockp = &proc_lock[pid_getlockslot(pidp->pid_prslot)]; in pid_allocate()
270 pid_exit(proc_t *prp, struct task *tk) in pid_exit() argument
273 zone_t *zone = prp->p_zone; in pid_exit()
281 ASSERT(prp->p_pgidp != NULL || prp->p_stat == SIDL); in pid_exit()
282 if (prp->p_pgidp != NULL) in pid_exit()
283 pgexit(prp); in pid_exit()
285 sess_rele(prp->p_sessp, B_TRUE); in pid_exit()
[all …]
H A Dprocset.c86 proc_t *prp; /* A process from the set */ in dotoprocs() local
134 if (((prp = prfind((pid_t)pid)) == NULL) || in dotoprocs()
135 (prp->p_stat == SIDL || prp->p_stat == SZOMB || in dotoprocs()
136 prp->p_tlist == NULL || prp->p_flag & SSYS)) { in dotoprocs()
150 error = (*funcp)(prp, arg); in dotoprocs()
161 for (prp = practive; prp != NULL; prp = prp->p_next) { in dotoprocs()
166 if (!HASZONEACCESS(curproc, prp->p_zone->zone_id)) in dotoprocs()
174 if (prp->p_stat == SIDL || prp->p_stat == SZOMB) in dotoprocs()
177 mutex_enter(&prp->p_lock); in dotoprocs()
178 if (prp->p_flag & SSYS || prp->p_tlist == NULL || in dotoprocs()
[all …]
H A Dklpd.c847 pfexec_reply_t pr, *prp; in pfexec_call() local
903 prp = (pfexec_reply_t *)da.rbuf; in pfexec_call()
909 prp->pfr_ioff > da.rsize - sizeof (priv_set_t) || in pfexec_call()
910 prp->pfr_loff > da.rsize - sizeof (priv_set_t) || in pfexec_call()
911 (prp->pfr_loff & (sizeof (priv_chunk_t) - 1)) != 0 || in pfexec_call()
912 (prp->pfr_ioff & (sizeof (priv_chunk_t) - 1)) != 0) in pfexec_call()
926 if (!prp->pfr_allowed) { in pfexec_call()
930 if (!prp->pfr_setcred) { in pfexec_call()
942 if (crsetresuid(ncr, prp->pfr_ruid, prp->pfr_euid, prp->pfr_euid) != 0) in pfexec_call()
944 if (crsetresgid(ncr, prp->pfr_rgid, prp->pfr_egid, prp->pfr_egid) != 0) in pfexec_call()
[all …]
/titanic_41/usr/src/uts/sparc/fs/proc/
H A Dprmachdep.c93 prgetprregs(klwp_t *lwp, prgregset_t prp) in prgetprregs() argument
100 bzero(prp, sizeof (prp)); in prgetprregs()
106 prp[R_G1] = gr[REG_G1]; in prgetprregs()
107 prp[R_G2] = gr[REG_G2]; in prgetprregs()
108 prp[R_G3] = gr[REG_G3]; in prgetprregs()
109 prp[R_G4] = gr[REG_G4]; in prgetprregs()
110 prp[R_G5] = gr[REG_G5]; in prgetprregs()
111 prp[R_G6] = gr[REG_G6]; in prgetprregs()
112 prp[R_G7] = gr[REG_G7]; in prgetprregs()
114 prp[R_O0] = gr[REG_O0]; in prgetprregs()
[all …]
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_provider.c240 dt_probe_t *prp; in dt_probe_discover() local
309 if ((prp = dt_probe_create(dtp, idp, 2, in dt_probe_discover()
315 dt_probe_declare(pvp, prp); in dt_probe_discover()
334 dt_node_type_assign(prp->pr_nargv[adp->dtargd_mapping], in dt_probe_discover()
341 dt_node_type_propagate(prp->pr_nargv[ in dt_probe_discover()
342 adp->dtargd_mapping], prp->pr_xargv[i]); in dt_probe_discover()
354 dt_node_type_assign(prp->pr_xargv[i], in dt_probe_discover()
358 prp->pr_mapping[i] = adp->dtargd_mapping; in dt_probe_discover()
359 prp->pr_argv[i] = dtt; in dt_probe_discover()
362 return (prp); in dt_probe_discover()
[all …]
H A Ddt_program.c403 dt_probe_t *prp = idp->di_data; in dt_header_decl() local
410 p = prp->pr_name; in dt_header_decl()
414 fname = alloca(strlen(prp->pr_name) + 1 + i); in dt_header_decl()
415 dt_header_fmt_func(fname, prp->pr_name); in dt_header_decl()
421 for (dnp = prp->pr_nargs, i = 0; dnp != NULL; dnp = dnp->dn_list, i++) { in dt_header_decl()
427 if (i + 1 != prp->pr_nargc && in dt_header_decl()
456 dt_probe_t *prp = idp->di_data; in dt_header_probe() local
461 p = prp->pr_name; in dt_header_probe()
465 mname = alloca(strlen(prp->pr_name) + 1); in dt_header_probe()
466 dt_header_fmt_macro(mname, prp->pr_name); in dt_header_probe()
[all …]
H A Ddt_ident.c315 dt_probe_t *prp = yypcb->pcb_probe; in dt_idcook_args() local
342 if (prp == NULL) { in dt_idcook_args()
349 if (ap->dn_value >= prp->pr_argc) { in dt_idcook_args()
362 xnp = prp->pr_xargv[ap->dn_value]; in dt_idcook_args()
363 nnp = prp->pr_nargv[prp->pr_mapping[ap->dn_value]]; in dt_idcook_args()
385 prp->pr_argv[ap->dn_value].dtt_ctfp, in dt_idcook_args()
386 prp->pr_argv[ap->dn_value].dtt_type, in dt_idcook_args()
387 prp->pr_argv[ap->dn_value].dtt_flags & DTT_FL_USER ? in dt_idcook_args()
392 dxp = dt_xlator_lookup(dtp, dt_probe_tag(prp, ap->dn_value, &tag), in dt_idcook_args()
H A Ddt_dof.c398 dt_probe_t *prp = idp->di_data; in dof_add_probe() local
409 dofpr.dofpr_name = dof_add_string(ddo, prp->pr_name); in dof_add_probe()
412 for (dnp = prp->pr_nargs; dnp != NULL; dnp = dnp->dn_list) { in dof_add_probe()
419 for (dnp = prp->pr_xargs; dnp != NULL; dnp = dnp->dn_list) { in dof_add_probe()
426 for (i = 0; i < prp->pr_xargc; i++) { in dof_add_probe()
427 dt_buf_write(dtp, &ddo->ddo_args, &prp->pr_mapping[i], in dof_add_probe()
431 dofpr.dofpr_nargc = prp->pr_nargc; in dof_add_probe()
432 dofpr.dofpr_xargc = prp->pr_xargc; in dof_add_probe()
436 for (pip = prp->pr_inst; pip != NULL; pip = pip->pi_next) { in dof_add_probe()
438 prp->pr_name); in dof_add_probe()
/titanic_41/usr/src/cmd/fs.d/nfs/nfslog/
H A Dreadbuf.c151 lbp->prp = NULL; in nfslog_init_buf()
275 struct processed_records *prp, *tprp; in nfslog_free_buf() local
278 if (lbp->prp) { in nfslog_free_buf()
279 if (lbp->last_record_offset == lbp->prp->start_offset) { in nfslog_free_buf()
283 lbp->prp->start_offset + lbp->prp->len; in nfslog_free_buf()
289 prp = lbp->prp; in nfslog_free_buf()
291 tprp = prp->next; in nfslog_free_buf()
292 free(prp); in nfslog_free_buf()
293 prp = tprp; in nfslog_free_buf()
294 } while (lbp->prp != prp); in nfslog_free_buf()
[all …]
H A Dnfslogd.h130 struct processed_records *prp; /* list of processed chunks */ member
/titanic_41/usr/src/uts/common/syscall/
H A Dutssys.c315 proc_t *prp; in dofusers() local
339 for (npids = 0, prp = practive; prp != NULL; prp = prp->p_next) { in dofusers()
340 if (inglobal || prp->p_zone == zone) in dofusers()
341 pidlist[npids++] = prp->p_pid; in dofusers()
360 prp = sprlock(pid); in dofusers()
361 if (prp == NULL) in dofusers()
365 mutex_enter(&prp->p_crlock); in dofusers()
366 uid = crgetruid(prp->p_cred); in dofusers()
367 mutex_exit(&prp->p_crlock); in dofusers()
374 mutex_exit(&prp->p_lock); in dofusers()
[all …]
/titanic_41/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_ctl.c380 prompt_t *prp, in dev_remove() argument
399 ret = quiesce_confirm(apidp, MSG_RMDEV, prp, &proceed, &do_quiesce, in dev_remove()
443 ret = dev_hotplug(apidp, prp, flags, do_quiesce, errstring); in dev_remove()
491 prompt_t *prp, in dev_insert() argument
509 ret = quiesce_confirm(apidp, MSG_INSDEV, prp, &proceed, &do_quiesce, in dev_insert()
521 ret = dev_hotplug(apidp, prp, flags, do_quiesce, errstring); in dev_insert()
545 prompt_t *prp, in dev_replace() argument
564 ret = quiesce_confirm(apidp, MSG_REPLDEV, prp, &proceed, &do_quiesce, in dev_replace()
603 ret = dev_hotplug(apidp, prp, flags, do_quiesce, errstring); in dev_replace()
634 prompt_t *prp, in dev_led() argument
[all …]
/titanic_41/usr/src/uts/sun4u/montecarlo/io/
H A Dacebus.c928 pci_regspec_t *pci_rp, *prp; in acebus_update_props() local
972 prp = pci_rp + i; in acebus_update_props()
973 if (PCI_REG_REG_G(prp->pci_phys_hi) == er[0].ebus_phys_hi) { in acebus_update_props()
985 er[0].pci_phys_hi = prp->pci_phys_hi; in acebus_update_props()
986 er[0].pci_phys_mid = prp->pci_phys_mid; in acebus_update_props()
987 er[0].pci_phys_low = prp->pci_phys_low; in acebus_update_props()
988 er[0].rng_size = prp->pci_size_low; in acebus_update_props()
996 prp = pci_rp + i; in acebus_update_props()
997 if (PCI_REG_REG_G(prp->pci_phys_hi) == er[1].ebus_phys_hi) { in acebus_update_props()
1008 er[1].pci_phys_hi = prp->pci_phys_hi; in acebus_update_props()
[all …]
/titanic_41/usr/src/uts/sun4v/io/
H A Dvnet_dds.c877 vdds_ranges_t *prp; in vdds_new_niu_node() local
965 prp = &prng[rnum]; in vdds_new_niu_node()
966 if (prp->child_hi == HVCOOKIE(cba->cookie)) { in vdds_new_niu_node()
973 prp = &prng[rnum]; in vdds_new_niu_node()
974 if (prp->child_hi == 0) { in vdds_new_niu_node()
988 prp->child_hi = HVCOOKIE(cba->cookie); in vdds_new_niu_node()
989 prp->child_lo = 0; in vdds_new_niu_node()
990 prp->parent_hi = 0x80000000 | (start >> 32); in vdds_new_niu_node()
991 prp->parent_lo = start & 0x00000000FFFFFFFF; in vdds_new_niu_node()
992 prp->size_hi = (size >> 32); in vdds_new_niu_node()
[all …]
/titanic_41/usr/src/uts/intel/fs/proc/
H A Dprmachdep.c94 prgetprregs(klwp_t *lwp, prgregset_t prp) in prgetprregs() argument
98 getgregs(lwp, prp); in prgetprregs()
106 prsetprregs(klwp_t *lwp, prgregset_t prp, int initial) in prsetprregs() argument
110 (void) setgregs(lwp, prp); in prsetprregs()
154 prgetprregs32(klwp_t *lwp, prgregset32_t prp) in prgetprregs32() argument
157 getgregs32(lwp, prp); in prgetprregs32()
/titanic_41/usr/src/cmd/plockstat/
H A Dplockstat.c658 const psinfo_t *prp = Ppsinfo(P); in prochandler() local
677 if (prp != NULL && WIFSIGNALED(prp->pr_wstat)) { in prochandler()
679 proc_signame(WTERMSIG(prp->pr_wstat), in prochandler()
681 } else if (prp != NULL && WEXITSTATUS(prp->pr_wstat) != 0) { in prochandler()
683 pid, WEXITSTATUS(prp->pr_wstat)); in prochandler()
/titanic_41/usr/src/cmd/sh/
H A Derror.c44 prp(); in error()
53 prp(); in failed_body()
H A Dprint.c61 prp() in prp() function
/titanic_41/usr/src/cmd/dtrace/
H A Ddtrace.c751 const psinfo_t *prp = Ppsinfo(P); in prochandler() local
770 if (prp != NULL && WIFSIGNALED(prp->pr_wstat)) { in prochandler()
772 proc_signame(WTERMSIG(prp->pr_wstat), in prochandler()
774 } else if (prp != NULL && WEXITSTATUS(prp->pr_wstat) != 0) { in prochandler()
776 pid, WEXITSTATUS(prp->pr_wstat)); in prochandler()
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb_typedef.c294 typedef_parse(char *defn, const char *name, parse_root_t **prp) in typedef_parse() argument
401 *prp = pr; in typedef_parse()
H A Dmdb_proc.c3027 pt_prmap_to_mdbmap(mdb_tgt_t *t, const prmap_t *prp, mdb_map_t *mp) in pt_prmap_to_mdbmap() argument
3034 rv = Pobjname_resolved(P, prp->pr_vaddr, name, sizeof (name)); in pt_prmap_to_mdbmap()
3036 rv = Pobjname(P, prp->pr_vaddr, name, sizeof (name)); in pt_prmap_to_mdbmap()
3040 if (Plmid(P, prp->pr_vaddr, &lmid) == 0 && ( in pt_prmap_to_mdbmap()
3050 (void) strncpy(mp->map_name, prp->pr_mapname, in pt_prmap_to_mdbmap()
3055 mp->map_base = prp->pr_vaddr; in pt_prmap_to_mdbmap()
3056 mp->map_size = prp->pr_size; in pt_prmap_to_mdbmap()
3059 if (prp->pr_mflags & MA_READ) in pt_prmap_to_mdbmap()
3061 if (prp->pr_mflags & MA_WRITE) in pt_prmap_to_mdbmap()
3063 if (prp->pr_mflags & MA_EXEC) in pt_prmap_to_mdbmap()
[all …]
/titanic_41/usr/src/uts/common/fs/proc/
H A Dprioctl.c452 proc_t *prp = thing; in prioctl64() local
454 *prp = *p; in prioctl64()
456 if (copyout(prp, cmaddr, sizeof (proc_t))) in prioctl64()
458 kmem_free(prp, sizeof (proc_t)); in prioctl64()
2015 proc_t *prp = thing; in prioctl32() local
2017 *prp = *p; in prioctl32()
2019 if (copyout(prp, cmaddr, sizeof (proc_t))) in prioctl32()
2021 kmem_free(prp, sizeof (proc_t)); in prioctl32()
3072 prsetrun(kthread_t *t, prrun_t *prp) in prsetrun() argument
3076 long flags = prp->pr_flags; in prsetrun()
[all …]

12