Home
last modified time | relevance | path

Searched refs:pg (Results 51 – 75 of 154) sorted by relevance

1234567

/illumos-gate/usr/src/cmd/svc/common/
H A Dmanifest_hash.c122 scf_propertygroup_t *pg; in mhash_retrieve_entry() local
139 (pg = scf_pg_create(hndl)) == NULL || in mhash_retrieve_entry()
156 if (scf_service_get_pg(svc, name, pg) != SCF_SUCCESS) { in mhash_retrieve_entry()
225 scf_pg_destroy(pg); in mhash_retrieve_entry()
238 scf_propertygroup_t *pg = NULL; in mhash_store_entry() local
256 (pg = scf_pg_create(hndl)) == NULL || in mhash_store_entry()
318 if (scf_service_get_pg(svc, name, pg) == SCF_SUCCESS) in mhash_store_entry()
330 MHASH_PG_FLAGS, pg) == SCF_SUCCESS) in mhash_store_entry()
397 if (scf_pg_update(pg) == -1) { in mhash_store_entry()
404 if (scf_transaction_start(tx, pg) != SCF_SUCCESS) { in mhash_store_entry()
[all …]
/illumos-gate/usr/src/lib/fm/libdiskstatus/common/
H A Dds_scsi_uscsi.c1202 struct mode_page *pg; in uscsi_mode_sense() local
1298 if (pg->code != page_code) { in uscsi_mode_sense()
1300 page_code, pg->code); in uscsi_mode_sense()
1311 if (((int)pg->length) > maximum) { in uscsi_mode_sense()
1314 page_code, pg->length, maximum); in uscsi_mode_sense()
1319 (void) memcpy(page_data, (caddr_t)pg, MODESENSE_PAGE_LEN(pg)); in uscsi_mode_sense()
1344 struct mode_page *pg; in uscsi_mode_sense_10() local
1425 if (pg->code != page_code) { in uscsi_mode_sense_10()
1438 if (((int)pg->length) > maximum) { in uscsi_mode_sense_10()
1441 page_code, pg->length, maximum); in uscsi_mode_sense_10()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dutil.c399 get_property_value(const char *fmri, const char *pg, const char *prop, in get_property_value() argument
406 running ? res->sr_snap : NULL, pg, res->sr_pg) != 0) { in get_property_value()
597 nwamd_set_count_property(const char *fmri, const char *pg, const char *prop, in nwamd_set_count_property() argument
605 if (scf_instance_add_pg(res.sr_inst, pg, SCF_GROUP_APPLICATION, in nwamd_set_count_property()
609 if (scf_instance_get_pg_composed(res.sr_inst, NULL, pg, in nwamd_set_count_property()
630 nwamd_set_string_property(const char *fmri, const char *pg, const char *prop, in nwamd_set_string_property() argument
638 if (scf_instance_add_pg(res.sr_inst, pg, SCF_GROUP_APPLICATION, in nwamd_set_string_property()
642 if (scf_instance_get_pg_composed(res.sr_inst, NULL, pg, in nwamd_set_string_property()
668 nwamd_delete_scf_property(const char *fmri, const char *pg, const char *prop) in nwamd_delete_scf_property() argument
676 if (scf_instance_add_pg(res.sr_inst, pg, SCF_GROUP_APPLICATION, in nwamd_delete_scf_property()
[all …]
/illumos-gate/usr/src/lib/libfcoe/common/
H A Dlibfcoe.c181 scf_propertygroup_t *pg = NULL; in fcoe_add_remove_scf_entry() local
208 if (((pg = scf_pg_create(handle)) == NULL) || in fcoe_add_remove_scf_entry()
218 if (scf_service_get_pg(svc, FCOE_PG_NAME, pg) == -1) { in fcoe_add_remove_scf_entry()
221 SCF_GROUP_APPLICATION, 0, pg) == -1) { in fcoe_add_remove_scf_entry()
253 if (scf_transaction_start(tran, pg) == -1) { in fcoe_add_remove_scf_entry()
436 if (pg != NULL) { in fcoe_add_remove_scf_entry()
437 scf_pg_destroy(pg); in fcoe_add_remove_scf_entry()
838 scf_propertygroup_t *pg = NULL; in FCOE_LoadConfig() local
856 if (((pg = scf_pg_create(handle)) == NULL) || in FCOE_LoadConfig()
951 if (pg != NULL) { in FCOE_LoadConfig()
[all …]
/illumos-gate/usr/src/lib/libscf/common/
H A Dlowlevel.c1410 if (pg != NULL) in handle_unrefed()
2848 (pg != NULL)?&pg->rd_d : NULL)); in scf_service_add_pg()
2869 (pg != NULL)?&pg->rd_d : NULL)); in scf_instance_add_pg()
2882 REP_PROTOCOL_ENTITY_SNAPSHOT, pg ? &pg->rd_d : NULL, 0)); in scf_instance_get_snapshot()
5470 if (pg) { in scf_canonify_fmri()
5506 (pg != NULL && h != pg->rd_d.rd_handle) || in scf_handle_decode_fmri()
5602 if (pg == NULL) in scf_handle_decode_fmri()
5603 pg = h->rh_pg; in scf_handle_decode_fmri()
6808 info.pg = pg; in scf_walk_fmri()
6968 info.pg = pg; in scf_walk_fmri()
[all …]
/illumos-gate/usr/src/cmd/svc/svcs/
H A Dsvcs.c1009 if (wip->pg != NULL) { in sprint_ctid()
1049 if (wip->pg != NULL) { in sortkey_ctid()
1093 if (wip->pg != NULL) { in sprint_desc()
1182 if (wip->pg == NULL) { in sortkey_states()
1214 if (wip->pg == NULL) { in sprint_state()
1255 if (wip->pg == NULL) { in sprint_nstate()
1411 if (wip->pg == NULL) in sprint_sta()
1435 if (wip->pg == NULL) in sprint_nsta()
1689 if (wip->pg == NULL) in sortkey_stime()
2329 scf_pg_destroy(pg); in print_application_properties()
[all …]
/illumos-gate/usr/src/cmd/fcinfo/
H A Dfcadm-list.c143 scf_propertygroup_t *pg = NULL; in npivAddRemoveNPIVEntry() local
171 if (((pg = scf_pg_create(handle)) == NULL) || in npivAddRemoveNPIVEntry()
181 if (scf_service_get_pg(svc, NPIV_PG_NAME, pg) == -1) { in npivAddRemoveNPIVEntry()
185 SCF_GROUP_APPLICATION, 0, pg) == -1) { in npivAddRemoveNPIVEntry()
205 if (scf_transaction_start(tran, pg) == -1) { in npivAddRemoveNPIVEntry()
385 if (pg != NULL) { in npivAddRemoveNPIVEntry()
386 scf_pg_destroy(pg); in npivAddRemoveNPIVEntry()
846 scf_propertygroup_t *pg = NULL; in fc_util_create_portlist() local
860 if (((pg = scf_pg_create(handle)) == NULL) || in fc_util_create_portlist()
925 if (pg != NULL) { in fc_util_create_portlist()
[all …]
/illumos-gate/usr/src/cmd/kbd/
H A Dkbd.c686 scf_propertygroup_t *pg = NULL; in kbd_defaults() local
700 (pg = scf_pg_create(h)) == NULL || in kbd_defaults()
716 if (scf_instance_get_pg_composed(inst, snap, KBD_PG, pg) != 0) { in kbd_defaults()
732 if (scf_pg_get_property(pg, KBD_PROP_KEYCLICK, prop) != 0 || in kbd_defaults()
765 if (scf_pg_get_property(pg, KBD_PROP_RPTCOUNT, prop) != 0 || in kbd_defaults()
777 if (scf_pg_get_property(pg, KBD_PROP_RPTDELAY, prop) != 0 || in kbd_defaults()
789 if (scf_pg_get_property(pg, KBD_PROP_RPTRATE, prop) != 0 || in kbd_defaults()
801 if (scf_pg_get_property(pg, KBD_PROP_LAYOUT, prop) != 0 || in kbd_defaults()
823 if (scf_pg_get_property(pg, KBD_PROP_FREQ, prop) != 0 || in kbd_defaults()
835 if (scf_pg_get_property(pg, KBD_PROP_CONSFREQ, prop) != 0 || in kbd_defaults()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_main.c308 for (pg = phyint_groups; pg != NULL; pg = pg->pg_next) { in initifs()
309 pg->pg_in_use = _B_FALSE; in initifs()
394 if (pg == NULL) { in initifs()
396 if (pg == NULL) { in initifs()
446 for (pg = phyint_groups; pg != NULL; pg = next_pg) { in initifs()
447 next_pg = pg->pg_next; in initifs()
448 if (!pg->pg_in_use) { in initifs()
483 struct phyint_group *pg; in check_addr_unique() local
864 struct phyint_group *pg; in check_config() local
875 for (pg = phyint_groups; pg != NULL; pg = pg->pg_next) { in check_config()
[all …]
H A Dmpd_tables.h146 #define GROUP_FAILED(pg) ((pg)->pg_state == PG_FAILED) argument
423 extern void phyint_group_chstate(struct phyint_group *pg, enum pg_state state);
426 extern void phyint_group_insert(struct phyint_group *pg);
427 extern void phyint_group_delete(struct phyint_group *pg);
428 extern void phyint_group_refresh_state(struct phyint_group *pg);
/illumos-gate/usr/src/cmd/svc/startd/
H A Dmisc.c84 const char *instance, *pg; in fmri_canonify() local
91 scf_parse_svc_fmri(cf, NULL, NULL, &instance, &pg, in fmri_canonify()
97 if (instance == NULL || pg != NULL) { in fmri_canonify()
H A Dgraph.c1833 if (pg == NULL) in offline_vertex()
1846 scf_pg_destroy(pg); in offline_vertex()
1865 scf_pg_destroy(pg); in offline_vertex()
1881 scf_pg_destroy(pg); in offline_vertex()
1889 scf_pg_destroy(pg); in offline_vertex()
3235 scf_pg_destroy(pg); in configure_vertex()
3240 scf_pg_destroy(pg); in configure_vertex()
3255 scf_pg_destroy(pg); in configure_vertex()
3286 scf_pg_destroy(pg); in configure_vertex()
3311 scf_pg_destroy(pg); in configure_vertex()
[all …]
/illumos-gate/usr/src/lib/pam_modules/sample/
H A Dsample_acct_mgmt.c52 char *pg; in pam_sm_acct_mgmt() local
66 if (pam_get_item(pamh, PAM_SERVICE, (void **)&pg) != PAM_SUCCESS) in pam_sm_acct_mgmt()
80 if (strcmp(pg, "su") == 0) { in pam_sm_acct_mgmt()
/illumos-gate/usr/src/cmd/format/
H A Dmenu_scsi.c319 struct mode_page *pg; in do_mode_sense() local
329 pg = (struct mode_page *)msbuf; in do_mode_sense()
337 dump(default_msg, msbuf, MODESENSE_PAGE_LEN(pg), HEX_ONLY); in do_mode_sense()
345 dump(current_msg, msbuf, MODESENSE_PAGE_LEN(pg), HEX_ONLY); in do_mode_sense()
353 dump(saved_msg, msbuf, MODESENSE_PAGE_LEN(pg), HEX_ONLY); in do_mode_sense()
361 dump(changeable_msg, msbuf, MODESENSE_PAGE_LEN(pg), HEX_ONLY); in do_mode_sense()
406 struct mode_page *pg; in do_mode_select() local
444 pg = (struct mode_page *)saved; in do_mode_select()
446 length = min(MODESENSE_PAGE_LEN(pg), MODESENSE_PAGE_LEN(pg2)); in do_mode_select()
460 if (pg->ps) { in do_mode_select()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dcap_util.c303 void cu_pg_update(pghw_t *pg);
1301 char *sharing = pghw_type_string(pg->pghw_hw); in cu_cpu_kstat_create()
1343 pghw_t *pg; in cu_cpu_kstat_update() local
1350 pg = cntr_info->ci_pg; in cu_cpu_kstat_update()
1352 kstat->cu_pg_id.value.i32 = ((pg_t *)pg)->pg_id; in cu_cpu_kstat_update()
1362 pghw_type_string(pg->pghw_hw)); in cu_cpu_kstat_update()
1385 pghw_type_string(pg->pghw_hw)); in cu_cpu_kstat_update()
1590 cu_pg_update(pghw_t *pg) in cu_pg_update() argument
1595 pghw_util_t *hw_util = &pg->pghw_stats; in cu_pg_update()
1605 pg_hwtype = pg->pghw_hw; in cu_pg_update()
[all …]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_2xml.c359 txml_print_pgroup(topo_hdl_t *thp, FILE *fp, tnode_t *node, topo_pgroup_t *pg) in txml_print_pgroup() argument
361 topo_ipgroup_info_t *pip = pg->tpg_info; in txml_print_pgroup()
371 for (plp = topo_list_next(&pg->tpg_pvals); plp != NULL; in txml_print_pgroup()
392 topo_pgroup_t *pg; in txml_print_node() local
408 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL; in txml_print_node()
409 pg = topo_list_next(pg)) { in txml_print_node()
410 txml_print_pgroup(thp, fp, node, pg); in txml_print_node()
/illumos-gate/usr/src/cmd/svc/configd/
H A Drc_node.c1234 (pg != NULL)? "/:properties/" : "", (pg != NULL)? pg : ""); in rc_notify_deletion()
2610 rc_node_t *pg; in perm_add_ent_prop_values() local
4176 pg = np; in rc_notify_node_delete()
4202 pg != NULL ? pg->rn_name : NULL); in rc_notify_node_delete()
4218 np = pg; in rc_notify_node_delete()
4219 pg = NULL; in rc_notify_node_delete()
5636 pg = NULL; in rc_svc_prop_exists()
5648 pg = spg; in rc_svc_prop_exists()
5691 pg = spg; in rc_svc_prop_exists()
6470 &pg); in rc_iter_next()
[all …]
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_util.c878 scf_propertygroup_t *pg = NULL; in nwam_get_smf_string_property() local
890 (pg = scf_pg_create(h)) == NULL || in nwam_get_smf_string_property()
906 if (scf_instance_get_pg_composed(inst, snap, pgname, pg) != 0 || in nwam_get_smf_string_property()
907 scf_pg_get_property(pg, propname, prop) != 0 || in nwam_get_smf_string_property()
918 scf_pg_destroy(pg); in nwam_get_smf_string_property()
933 scf_propertygroup_t *pg = NULL; in nwam_set_smf_string_property() local
944 (pg = scf_pg_create(h)) == NULL || in nwam_set_smf_string_property()
955 scf_instance_get_pg_composed(inst, NULL, pgname, pg) != 0) { in nwam_set_smf_string_property()
961 if (scf_transaction_start(tx, pg) == -1 || in nwam_set_smf_string_property()
975 if (scf_pg_update(pg) == -1) { in nwam_set_smf_string_property()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Drepval.c67 static scf_propertygroup_t *pg = NULL; variable
130 } else if (((pg = scf_pg_create(rep_handle)) == NULL) || in repval_init()
157 scf_pg_destroy(pg); in repval_fini()
158 pg = NULL; in repval_fini()
356 if (scf_instance_get_pg(inst, PG_NAME_INSTANCE_STATE, pg) < 0) { in _store_rep_vals()
360 SCF_GROUP_FRAMEWORK, SCF_PG_FLAG_NONPERSISTENT, pg) < 0) in _store_rep_vals()
369 if (scf_transaction_start(trans, pg) < 0) in _store_rep_vals()
392 if (scf_pg_update(pg) < 0) { in _store_rep_vals()
/illumos-gate/usr/src/cmd/svc/milestone/
H A Dmanifest-import392 while read pg prop type value; do
393 echo "$pg/$value"
404 read pg value
406 (echo "select /smf/manifest"; echo "delpg v$pg") |
408 (echo "select /smf/manifest"; echo "delpg $pg") |
411 echo "addpg v$pg framework") |
414 echo "setprop v$pg/md5sum = opaque: $value") |
/illumos-gate/usr/src/lib/libsun_ima/common/
H A Dima.c268 iscsi_param_get_t pg; in IMA_GetNodeProperties() local
281 pg.g_vers = ISCSI_INTERFACE_VERSION; in IMA_GetNodeProperties()
289 (char *)pg.g_value.v_name, in IMA_GetNodeProperties()
298 pg.g_vers = ISCSI_INTERFACE_VERSION; in IMA_GetNodeProperties()
307 (char *)pg.g_value.v_name, in IMA_GetNodeProperties()
2294 iscsi_param_get_t pg; in getISCSINodeParameter() local
2303 pg.g_vers = ISCSI_INTERFACE_VERSION; in getISCSINodeParameter()
2305 pg.g_param = paramIndex; in getISCSINodeParameter()
2306 pg.g_param_type = ISCSI_SESS_PARAM; in getISCSINodeParameter()
3270 iscsi_tunable_object_t pg; in SUN_IMA_GetTunableProperties() local
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_split.c713 if (F_ISSET(c, CURS_INIT) && c->pg.pgno == h->pgno) {
714 if (c->pg.index >= skip)
715 ++c->pg.index;
716 if (c->pg.index < nxt) /* Left page. */
717 c->pg.pgno = l->pgno;
719 c->pg.pgno = r->pgno;
720 c->pg.index -= nxt;
800 bt_preserve(t, pg) in bt_preserve() argument
802 db_pgno_t pg;
806 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
H A Dbt_search.c73 db_pgno_t pg; local
77 for (pg = P_ROOT;;) {
78 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
132 pg = GETBINTERNAL(h, idx)->pgno;
/illumos-gate/usr/src/uts/common/vm/
H A Dseg_kmem.c454 spgcnt_t pg; in segkmem_fault() local
478 for (pg = 0; pg < npages; pg++) { in segkmem_fault()
488 while (--pg >= 0) { in segkmem_fault()
698 spgcnt_t pg; in segkmem_pagelock() local
718 for (pg = 0; pg < npages; pg++) { in segkmem_pagelock()
719 pp = pplist[pg]; in segkmem_pagelock()
734 for (pg = 0; pg < npages; pg++) { in segkmem_pagelock()
737 while (--pg >= 0) in segkmem_pagelock()
738 page_unlock(pplist[pg]); in segkmem_pagelock()
743 pplist[pg] = pp; in segkmem_pagelock()
/illumos-gate/usr/src/uts/common/sys/
H A Dcmt.h99 #define CMT_CAPACITY(pg) (GROUP_SIZE(&((pg_cmt_t *)pg)->cmt_cpus_actv)) argument

1234567