/illumos-gate/usr/src/cmd/ |
H A D | Makefile | 323 pg \ 659 pg \
|
/illumos-gate/usr/src/cmd/acctadm/ |
H A D | aconf.c | 322 scf_propertygroup_t *pg; in aconf_save() local 337 if (scf_pg_update(pg) == -1 || in aconf_save() 338 scf_transaction_start(tx, pg) == -1) in aconf_save() 363 scf_pg_destroy(pg); in aconf_save() 451 scf_propertygroup_t *pg; in aconf_get_string() local 456 if ((pg = scf_pg_create(handle)) == NULL) in aconf_get_string() 460 scf_pg_destroy(pg); in aconf_get_string() 473 scf_pg_destroy(pg); in aconf_get_string() 480 scf_propertygroup_t *pg; in aconf_get_bool() local 489 scf_pg_destroy(pg); in aconf_get_bool() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | util.c | 399 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/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_scf.c | 208 if (pg != NULL) in ilbd_scf_destroy() 209 scf_pg_destroy(pg); in ilbd_scf_destroy() 272 *pg = scf_pg_create(h); in ilbd_scf_retrieve_pg() 273 if (*pg == NULL) in ilbd_scf_retrieve_pg() 280 *pg = NULL; in ilbd_scf_retrieve_pg() 302 *pg = NULL; in ilbd_scf_retrieve_pg() 788 h = scf_pg_handle(pg); in ilbd_create_pg() 854 ilbd_scf_destroy(scf_pg_handle(pg), NULL, NULL, pg); in ilbd_destroy_pg() 875 h = scf_pg_handle(pg); in ilbd_scf_set_prop() 962 h = scf_pg_handle(pg); in ilbd_scf_get_prop_val() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_main.c | 308 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 D | mpd_probe.c | 623 struct phyint_group *pg; in incoming_rtt_reply() local 675 pg->pg_fdt = MAX(pg->pg_fdt / NEXT_FDT_MULTIPLE, in incoming_rtt_reply() 677 pg->pg_probeint = pg->pg_fdt / (NUM_PROBE_FAILS + 2); in incoming_rtt_reply() 910 pg->pg_fdt = pg->pg_probeint * (NUM_PROBE_FAILS + 2); in incoming_echo_reply() 918 pg->pg_name, pg->pg_fdt); in incoming_echo_reply() 930 pg->pg_fdt = MAX(pg->pg_fdt / NEXT_FDT_MULTIPLE, in incoming_echo_reply() 932 pg->pg_probeint = pg->pg_fdt / (NUM_PROBE_FAILS + 2); in incoming_echo_reply() 2148 struct phyint_group *pg; in failure_state() local 2155 pg = pi->pi_group; in failure_state() 2168 if (pg == phyint_anongroup) in failure_state() [all …]
|
H A D | mpd_tables.c | 301 for (pg = phyint_groups; pg != NULL; pg = pg->pg_next) { in phyint_group_lookup() 305 return (pg); in phyint_group_lookup() 341 pg->pg_sig++; in phyint_insert() 531 return (pg); in phyint_group_create() 611 pg = NULL; in phyint_inst_init_from_k() 1114 assert(phyint_groups == pg || pg->pg_prev != NULL); in phyint_group_delete() 1117 pg->pg_prev->pg_next = pg->pg_next; in phyint_group_delete() 1122 pg->pg_next->pg_prev = pg->pg_prev; in phyint_group_delete() 1131 free(pg); in phyint_group_delete() 3348 for (ngroup = 0, pg = phyint_groups; pg != NULL; pg = pg->pg_next) in getgrouplist() [all …]
|
H A D | mpd_tables.h | 146 #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/cmd-inet/usr.lib/inetd/ |
H A D | config.c | 700 read_enable_prop(const char *fmri, boolean_t *enabled, const char *pg) in read_enable_prop() argument 705 if ((sp = scf_simple_prop_get(rep_handle, fmri, pg, in read_enable_prop()
|
H A D | repval.c | 67 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/cmd-inet/usr.sbin/inetadm/ |
H A D | inetadm.c | 186 modify_prop(const scf_instance_t *inst, const char *pg, const char *prop, in modify_prop() argument 204 if (scf_instance_get_pg(inst, pg, gpg) == -1) { in modify_prop() 216 "from \"%s\", attempting to add it.\n", pg, fmri); in modify_prop() 219 if (scf_instance_add_pg(inst, pg, SCF_GROUP_FRAMEWORK, 0, in modify_prop() 318 delete_prop(const scf_instance_t *inst, const char *pg, const char *prop) in delete_prop() argument 332 if (scf_instance_get_pg(inst, pg, gpg) != SCF_SUCCESS) { in delete_prop() 336 uu_die(gettext("Error: \"%s\" property group missing.\n"), pg); in delete_prop()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/ |
H A D | inetconv.c | 1104 const char *pg, const char *prop, const char *value) in modify_sprop() argument 1118 if (scf_instance_get_pg(inst, pg, gpg) == -1) { in modify_sprop() 1125 (scf_service_get_pg(svc, pg, gpg) == -1)) { in modify_sprop()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/routeadm/ |
H A D | routeadm.c | 1679 scf_propertygroup_t *pg; in ra_list_props_cb() local 1720 scf_iter_pg_properties(propiter, pg) != 0) { in ra_list_props_cb() 1797 scf_pg_destroy(pg); in ra_list_props_cb() 1883 if ((*pg = scf_pg_create(h)) == NULL || (composed && in ra_get_pg() 1884 scf_instance_get_pg_composed(inst, NULL, pgname, *pg) != 0) || in ra_get_pg() 1885 (!composed && scf_instance_get_pg(inst, pgname, *pg) != 0)) { in ra_get_pg() 1943 scf_propertygroup_t *pg = NULL; in ra_get_prop_as_string() local 1950 if (ra_get_pg(h, inst, pgname, composed, required, &pg) == -1) in ra_get_prop_as_string() 1960 if (scf_pg_get_property(pg, propname, prop) != 0) { in ra_get_prop_as_string() 2036 if (pg != NULL) in ra_get_prop_as_string() [all …]
|
/illumos-gate/usr/src/cmd/fcinfo/ |
H A D | fcadm-list.c | 143 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/format/ |
H A D | ctlr_scsi.c | 2128 struct mode_page *pg; in uscsi_mode_sense() local 2200 pg = (struct mode_page *)((ulong_t)mode_sense_buf + in uscsi_mode_sense() 2202 if (pg->code != page_code) { in uscsi_mode_sense() 2205 "code 0x%x\n", page_code, pg->code); in uscsi_mode_sense() 2220 if (((int)pg->length) > maximum) { in uscsi_mode_sense() 2224 page_code, pg->length, maximum); in uscsi_mode_sense() 2233 (void) memcpy(page_data, (caddr_t)pg, MODESENSE_PAGE_LEN(pg)); in uscsi_mode_sense() 2243 MODESENSE_PAGE_LEN(pg), HEX_ONLY); in uscsi_mode_sense()
|
H A D | menu_scsi.c | 319 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/cmd/fs.d/nfs/lib/ |
H A D | smfcfg.c | 153 scf_propertygroup_t *pg; in fs_smf_set_prop() local 185 pg = phandle->fs_pg; in fs_smf_set_prop() 209 pg) != -1) { in fs_smf_set_prop() 211 if (scf_transaction_start(tran, pg) == -1) { in fs_smf_set_prop() 288 scf_propertygroup_t *pg; in fs_smf_get_prop() local 317 pg = phandle->fs_pg; in fs_smf_get_prop() 340 if (scf_pg_get_property(pg, prop_name, in fs_smf_get_prop() 472 scf_propertygroup_t *pg; in nfs_upgrade_server_vers() local 504 pg = phandle->fs_pg; in nfs_upgrade_server_vers() 525 if (scf_pg_update(pg) == -1) in nfs_upgrade_server_vers() [all …]
|
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 276 scf_propertygroup_t *pg = NULL; in stop_delegates() local 306 (pg = scf_pg_create(h)) == NULL || in stop_delegates() 333 SCF_PG_GENERAL, pg) != 0) in stop_delegates() 336 if (scf_pg_get_property(pg, SCF_PROPERTY_RESTARTER, in stop_delegates() 369 scf_pg_destroy(pg); in stop_delegates()
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | idmap_config.c | 666 scf_propertygroup_t *pg, in del_val() argument 688 if (scf_pg_update(pg) == -1) { in del_val() 694 if (scf_transaction_start(tx, pg) != 0) { in del_val() 739 scf_propertygroup_t *pg, in set_val() argument 760 if (scf_pg_update(pg) == -1) { in set_val() 767 if (scf_transaction_start(tx, pg) == -1) { in set_val() 774 ret = scf_pg_get_property(pg, name, prop); in set_val() 840 scf_propertygroup_t *pg, in set_val_integer() argument 855 rc = set_val(handles, pg, name, value); in set_val_integer() 866 scf_propertygroup_t *pg, in set_val_astring() argument [all …]
|
/illumos-gate/usr/src/cmd/init/ |
H A D | init.c | 3289 scf_propertygroup_t *pg = NULL; in lscf_set_runlevel() local 3316 (pg = scf_pg_create(h)) == NULL || in lscf_set_runlevel() 3342 if (scf_instance_get_pg(inst, SCF_PG_OPTIONS_OVR, pg) != 0) { in lscf_set_runlevel() 3363 SCF_PG_OPTIONS_OVR_TYPE, SCF_PG_OPTIONS_OVR_FLAGS, pg) != in lscf_set_runlevel() 3393 if (scf_transaction_start(tx, pg) != 0) { in lscf_set_runlevel() 3460 (void) scf_pg_update(pg); in lscf_set_runlevel() 3467 scf_pg_destroy(pg); in lscf_set_runlevel()
|
/illumos-gate/usr/src/cmd/ipf/svc/ |
H A D | ipfd.c | 224 if (pg == NULL || pname == NULL || v == NULL) in pg_get_prop_value() 227 if (scf_pg_get_property(pg, pname, scratch_prop) == -1 || in pg_get_prop_value() 254 if (scf_pg_get_name(pg, scratch_name, max_scf_name_size) < 0) { in is_correct_event() 295 if (pg_get_prop_value(pg, proplist[i], in is_correct_event() 495 repository_event_process(scf_propertygroup_t *pg) in repository_event_process() argument 504 if (scf_pg_get_parent_instance(pg, inst) == -1) { in repository_event_process() 538 res = is_correct_event(scratch_fmri, pg, isrpc); in repository_event_process() 569 scf_propertygroup_t *pg; in repository_event_wait() local 584 if ((pg = scf_pg_create(h)) == NULL) { in repository_event_wait() 599 res = _scf_notify_wait(pg, fmri, max_scf_fmri_size); in repository_event_wait() [all …]
|
/illumos-gate/usr/src/cmd/iscsiadm/ |
H A D | sun_ima.c | 1763 iscsi_param_get_t pg; in getISCSINodeParameter() local 1770 pg.g_vers = ISCSI_INTERFACE_VERSION; in getISCSINodeParameter() 1771 pg.g_oid = (uint32_t)oid->objectSequenceNumber; in getISCSINodeParameter() 1772 pg.g_param = paramIndex; in getISCSINodeParameter() 1773 pg.g_param_type = ISCSI_SESS_PARAM; in getISCSINodeParameter() 1775 if (ioctl(fd, ISCSI_PARAM_GET, &pg) != 0) { in getISCSINodeParameter() 1790 (pg.g_value.v_valid == B_TRUE) ? in getISCSINodeParameter() 1794 mp->minimumValue = pg.g_value.v_integer.i_min; in getISCSINodeParameter() 1802 (pg.g_value.v_valid == B_TRUE) ? in getISCSINodeParameter() 1813 pg.g_param_type = ISCSI_CONN_PARAM; in getISCSINodeParameter() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | config.c | 62 scf_propertygroup_t *pg = NULL; in load_config() local 77 pg = scf_pg_create(handle); in load_config() 83 if (handle == NULL || sc == NULL || svc == NULL || pg == NULL || in load_config() 110 if (scf_service_get_pg(svc, ISNS_SERVER_CONFIG, pg) == -1) { in load_config() 120 if (scf_pg_get_property(pg, CONFIG_ESI_THRESHOLD, prop) == -1) { in load_config() 150 if (scf_pg_get_property(pg, CONFIG_MGMT_SCN, prop) == -1) { in load_config() 174 if (scf_pg_get_property(pg, CONFIG_DATA_STORE, prop) == -1) { in load_config() 198 if (scf_pg_get_property(pg, CONFIG_CONTROL_NODES, prop) == -1) { in load_config() 270 if (pg != NULL) { in load_config() 271 scf_pg_destroy(pg); in load_config()
|
H A D | obj.c | 1787 isns_obj_t *pg; in make_default_pg() local 1807 pg = obj_calloc(OBJ_PG); in make_default_pg() 1819 attr = &pg->attrs[ATTR_INDEX_PG( in make_default_pg() 1825 attr = &pg->attrs[ATTR_INDEX_PG( in make_default_pg() 1831 attr = &pg->attrs[ATTR_INDEX_PG( in make_default_pg() 1837 refp = get_ref_p(pg, OBJ_ISCSI); in make_default_pg() 1845 free(pg); in make_default_pg() 1848 pg = NULL; in make_default_pg() 1851 return (pg); in make_default_pg() 3077 const isns_obj_t *pg, in setup_deref_lcp() argument [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/xml/ |
H A D | data.def | 49 DEF_XML_DATA("pg", "oabcd", OBJ_PG, 'a')
|