Home
last modified time | relevance | path

Searched refs:pcinfo (Results 1 – 21 of 21) sorted by relevance

/illumos-gate/usr/src/cmd/dispadmin/
H A Ddispadmin.c182 pcinfo_t pcinfo; in print_classlist() local
192 pcinfo.pc_cid = cid; in print_classlist()
196 class_info(&pcinfo); in print_classlist()
208 pcinfo_t pcinfo; in exec_cscmd() local
218 (void) strncpy(pcinfo.pc_clname, clname, PC_CLNMSZ); in exec_cscmd()
232 class_info(pcinfo_t *pcinfo) in class_info() argument
238 pcinfo->pc_clname, pcinfo->pc_clname, basenm); in class_info()
242 pcinfo->pc_clname, pcinfo->pc_clname); in class_info()
246 pcinfo->pc_clname, pcinfo->pc_clname); in class_info()
296 pcinfo_t pcinfo; in set_scheduler() local
[all …]
H A Dfssdispadmin.c150 pcinfo_t pcinfo; in getadmin() local
156 (void) strcpy(pcinfo.pc_clname, "FSS"); in getadmin()
157 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1) in getadmin()
161 pcadmin.pc_cid = pcinfo.pc_cid; in getadmin()
194 pcinfo_t pcinfo; in setadmin() local
206 (void) strcpy(pcinfo.pc_clname, "FSS"); in setadmin()
207 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1) in setadmin()
272 pcadmin.pc_cid = pcinfo.pc_cid; in setadmin()
H A Dfxdispadmin.c157 pcinfo_t pcinfo; in get_fxdptbl() local
163 (void) strcpy(pcinfo.pc_clname, "FX"); in get_fxdptbl()
164 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1) in get_fxdptbl()
168 pcadmin.pc_cid = pcinfo.pc_cid; in get_fxdptbl()
223 pcinfo_t pcinfo; in set_fxdptbl() local
237 (void) strcpy(pcinfo.pc_clname, "FX"); in set_fxdptbl()
238 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1) in set_fxdptbl()
242 pcadmin.pc_cid = pcinfo.pc_cid; in set_fxdptbl()
H A Drtdispadmin.c154 pcinfo_t pcinfo; in get_rtdptbl() local
160 (void) strcpy(pcinfo.pc_clname, "RT"); in get_rtdptbl()
161 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1) in get_rtdptbl()
165 pcadmin.pc_cid = pcinfo.pc_cid; in get_rtdptbl()
221 pcinfo_t pcinfo; local
232 (void) strcpy(pcinfo.pc_clname, "RT");
233 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1)
237 pcadmin.pc_cid = pcinfo.pc_cid;
H A Diadispadmin.c154 pcinfo_t pcinfo; in get_iadptbl() local
160 (void) strcpy(pcinfo.pc_clname, "IA"); in get_iadptbl()
161 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1) in get_iadptbl()
166 pcadmin.pc_cid = pcinfo.pc_cid; in get_iadptbl()
227 pcinfo_t pcinfo; local
238 (void) strcpy(pcinfo.pc_clname, "IA");
239 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1)
243 pcadmin.pc_cid = pcinfo.pc_cid;
H A Dtsdispadmin.c154 pcinfo_t pcinfo; in get_tsdptbl() local
160 (void) strcpy(pcinfo.pc_clname, "TS"); in get_tsdptbl()
161 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1) in get_tsdptbl()
165 pcadmin.pc_cid = pcinfo.pc_cid; in get_tsdptbl()
223 pcinfo_t pcinfo; local
234 (void) strcpy(pcinfo.pc_clname, "TS");
235 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1)
239 pcadmin.pc_cid = pcinfo.pc_cid;
/illumos-gate/usr/src/cmd/priocntl/
H A Dfsspriocntl.c198 pcinfo_t pcinfo; in print_fssinfo() local
200 (void) strcpy(pcinfo.pc_clname, "FSS"); in print_fssinfo()
208 ((fssinfo_t *)pcinfo.pc_clinfo)->fss_maxupri, in print_fssinfo()
293 pcinfo_t pcinfo; in set_fssprocs() local
305 (void) strcpy(pcinfo.pc_clname, "FSS"); in set_fssprocs()
367 (void) strcpy(pcinfo.pc_clname, idargv[i]); in set_fssprocs()
369 (caddr_t)&pcinfo) == -1) in set_fssprocs()
373 basenm, pcinfo.pc_clname, in set_fssprocs()
375 id = pcinfo.pc_cid; in set_fssprocs()
414 pcinfo_t pcinfo; in exec_fsscmd() local
[all …]
H A Dtspriocntl.c213 pcinfo_t pcinfo; in print_tsinfo() local
215 (void) strcpy(pcinfo.pc_clname, "TS"); in print_tsinfo()
223 ((tsinfo_t *)pcinfo.pc_clinfo)->ts_maxupri, in print_tsinfo()
309 pcinfo_t pcinfo; in set_tsprocs() local
321 (void) strcpy(pcinfo.pc_clname, "TS"); in set_tsprocs()
383 (void) strcpy(pcinfo.pc_clname, idargv[i]); in set_tsprocs()
385 (caddr_t)&pcinfo) == -1) in set_tsprocs()
389 basenm, pcinfo.pc_clname, errno); in set_tsprocs()
390 id = pcinfo.pc_cid; in set_tsprocs()
430 pcinfo_t pcinfo; in exec_tscmd() local
[all …]
H A Diapriocntl.c230 pcinfo_t pcinfo; in print_iainfo() local
232 (void) strcpy(pcinfo.pc_clname, "IA"); in print_iainfo()
240 ((iainfo_t *)pcinfo.pc_clinfo)->ia_maxupri, in print_iainfo()
329 pcinfo_t pcinfo; in set_iaprocs() local
341 (void) strcpy(pcinfo.pc_clname, "IA"); in set_iaprocs()
407 (void) strcpy(pcinfo.pc_clname, idargv[i]); in set_iaprocs()
409 (caddr_t)&pcinfo) == -1) in set_iaprocs()
413 basenm, pcinfo.pc_clname, errno); in set_iaprocs()
414 id = pcinfo.pc_cid; in set_iaprocs()
456 pcinfo_t pcinfo; in exec_iacmd() local
[all …]
H A Drtpriocntl.c254 pcinfo_t pcinfo; in print_rtinfo() local
256 (void) strcpy(pcinfo.pc_clname, "RT"); in print_rtinfo()
264 ((rtinfo_t *)pcinfo.pc_clinfo)->rt_maxpri); in print_rtinfo()
361 pcinfo_t pcinfo; in set_rtprocs() local
375 (void) strcpy(pcinfo.pc_clname, "RT"); in set_rtprocs()
436 (void) strcpy(pcinfo.pc_clname, idargv[i]); in set_rtprocs()
438 (caddr_t)&pcinfo) == -1) in set_rtprocs()
442 basenm, pcinfo.pc_clname, errno); in set_rtprocs()
443 id = pcinfo.pc_cid; in set_rtprocs()
480 pcinfo_t pcinfo; in exec_rtcmd() local
[all …]
H A Dfxpriocntl.c250 pcinfo_t pcinfo; in print_fxinfo() local
252 (void) strcpy(pcinfo.pc_clname, "FX"); in print_fxinfo()
260 ((fxinfo_t *)pcinfo.pc_clinfo)->fx_maxupri); in print_fxinfo()
357 pcinfo_t pcinfo; in set_fxprocs() local
370 (void) strcpy(pcinfo.pc_clname, "FX"); in set_fxprocs()
445 (void) strcpy(pcinfo.pc_clname, idargv[i]); in set_fxprocs()
447 (caddr_t)&pcinfo) == -1) in set_fxprocs()
451 basenm, pcinfo.pc_clname, errno); in set_fxprocs()
452 id = pcinfo.pc_cid; in set_fxprocs()
491 pcinfo_t pcinfo; in exec_fxcmd() local
[all …]
H A Dpriocntl.c253 pcinfo_t pcinfo; in print_classlist() local
276 pcinfo.pc_cid = cid; in print_classlist()
281 CLASSPATH, pcinfo.pc_clname, pcinfo.pc_clname, basenm) >= in print_classlist()
284 cmdpath, pcinfo.pc_clname); in print_classlist()
287 (void) printf("%s\n", pcinfo.pc_clname); in print_classlist()
289 pcinfo.pc_clname); in print_classlist()
294 pcinfo.pc_clname); in print_classlist()
323 pcinfo_t pcinfo; in print_procs() local
387 pcinfo.pc_cid = cid; in print_procs()
474 pcinfo_t pcinfo; in set_procs() local
[all …]
H A Dsubr.c152 pcinfo_t pcinfo; local
154 (void) strncpy(pcinfo.pc_clname, clname, PC_CLNMSZ);
155 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1)
157 return (pcinfo.pc_cid);
166 pcinfo_t pcinfo; local
188 PC_KY_CLNAME, pcinfo.pc_clname, 0) == -1 ||
189 priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1)
192 *idptr = pcinfo.pc_cid;
/illumos-gate/usr/src/uts/common/disp/
H A Dpriocntl.c130 pcinfo_t pcinfo; in priocntl_common() local
189 if ((*copyinfn)(arg, &pcinfo, sizeof (pcinfo))) in priocntl_common()
198 error = getcid(pcinfo.pc_clname, &pcinfo.pc_cid); in priocntl_common()
215 scheduler_load(pcinfo.pc_clname, &sclass[pcinfo.pc_cid]); in priocntl_common()
218 error = CL_GETCLINFO(&sclass[pcinfo.pc_cid], pcinfo.pc_clinfo); in priocntl_common()
222 if ((*copyoutfn)(&pcinfo, arg, sizeof (pcinfo))) in priocntl_common()
239 if ((*copyinfn)(arg, &pcinfo, sizeof (pcinfo))) in priocntl_common()
243 if (pcinfo.pc_cid >= loaded_classes || pcinfo.pc_cid < 1) in priocntl_common()
246 (void) strncpy(pcinfo.pc_clname, sclass[pcinfo.pc_cid].cl_name, in priocntl_common()
256 scheduler_load(pcinfo.pc_clname, &sclass[pcinfo.pc_cid]); in priocntl_common()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dthrpool.c133 pcinfo_t pcinfo; in svcsetprio() local
158 (void) strcpy(pcinfo.pc_clname, "FX"); in svcsetprio()
159 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) != -1) { in svcsetprio()
160 maxupri = ((fxinfo_t *)pcinfo.pc_clinfo)->fx_maxupri; in svcsetprio()
/illumos-gate/usr/src/cmd/prstat/
H A Dprutil.c268 pcinfo_t pcinfo; in Priocntl() local
270 (void) strcpy(pcinfo.pc_clname, class); in Priocntl()
271 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1) { in Priocntl()
275 pcparms.pc_cid = pcinfo.pc_cid; in Priocntl()
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dsched.c182 pcinfo_t pcinfo; in get_info_by_class() local
199 pcinfo.pc_cid = classid; in get_info_by_class()
200 if (priocntl(0, 0, PC_GETCLINFO, &pcinfo) == -1) { in get_info_by_class()
210 strcmp(pcinfo.pc_clname, pccp->pcc_info.pc_clname) == 0) in get_info_by_class()
227 (void) strlcpy(pccp->pcc_info.pc_clname, pcinfo.pc_clname, PC_CLNMSZ); in get_info_by_class()
/illumos-gate/usr/src/uts/common/sys/
H A Dpriocntl.h79 typedef struct pcinfo { struct
/illumos-gate/usr/src/cmd/zonestat/zonestat/
H A Dzonestat.c2256 pcinfo_t pcinfo; in zonestat_set_fx() local
2259 (void) strlcpy(pcinfo.pc_clname, "FX", sizeof (pcinfo.pc_clname)); in zonestat_set_fx()
2260 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1) { in zonestat_set_fx()
2263 pcparms.pc_cid = pcinfo.pc_cid; in zonestat_set_fx()
/illumos-gate/usr/src/lib/libpool/common/
H A Dpool_internal.c553 pcinfo_t pcinfo; in pool_set_scheduler() local
560 (void) strncpy(pcinfo.pc_clname, sched, PC_CLNMSZ); in pool_set_scheduler()
561 if (priocntl(0, 0, PC_GETCID, &pcinfo) == -1) { in pool_set_scheduler()
/illumos-gate/usr/src/cmd/zonestat/zonestatd/
H A Dzonestatd.c4654 pcinfo_t pcinfo; in zsd_set_fx() local
4657 (void) strlcpy(pcinfo.pc_clname, "FX", sizeof (pcinfo.pc_clname)); in zsd_set_fx()
4658 if (priocntl(0, 0, PC_GETCID, (caddr_t)&pcinfo) == -1) { in zsd_set_fx()
4662 pcparms.pc_cid = pcinfo.pc_cid; in zsd_set_fx()