Lines Matching refs:class

86 #define	INVALID_PICL_CLASS gettext("add_subtree: invalid picl class 0x%x")
335 static int remove_references(picl_prophdl_t refprop, char *class);
348 static int add_sensor_prop(picl_nodehdl_t nodeh, char *class);
350 char *nodename, char *class, char *prop_class,
355 picl_nodehdl_t refhdl, char *class);
492 * Add the appropriate PICL class
549 switch (sgfrunode->class) {
560 syslog(LOG_ERR, INVALID_PICL_CLASS, sgfrunode->class);
969 /* create label property for location class */
1032 char class[PICL_CLASSNAMELEN_MAX];
1073 PICL_PROP_CLASSNAME, class, sizeof (class));
1088 if (strcmp(class, PICL_CLASS_MEMORY_MODULE) == 0 ||
1089 strcmp(class, PICL_CLASS_CPU) == 0) {
1094 err = remove_references(refprop, class);
1130 char class[PICL_CLASSNAMELEN_MAX];
1138 PICL_PROP_CLASSNAME, class, sizeof (class));
1144 err = create_table_entry(tblhdl, childnodeh, class);
1172 char class[PICL_CLASSNAMELEN_MAX];
1230 PICL_PROP_CLASSNAME, class, sizeof (class));
1237 err = create_table_entry(tblhdl, devnodeh, class);
1274 * create label property for location class
1385 remove_references(picl_prophdl_t refprop, char *class)
1402 if (strcmp(class, PICL_CLASS_CPU) == 0) {
1934 create_table_entry(picl_prophdl_t tblhdl, picl_nodehdl_t refhdl, char *class)
1940 /* first column is class */
1949 err = ptree_create_prop(&prop, class, &prophdl[0]);
1962 sprintf_buf2(prop.piclinfo.name, "_%s_", class);
2570 * class "class". Also add UnitAddress property (always 0 as the nodenames
2577 char *class, char *prop_class, picl_prophdl_t tblhdl,
2582 err = ptree_create_and_add_node(sch, nodename, class, sensorhdlp);
2588 err = create_table_entry(tblhdl, *sensorhdlp, class);
2615 add_sensor_prop(picl_nodehdl_t nodeh, char *class)
2620 if (strcmp(class, PICL_PROP_TEMPERATURE) == 0) {
2623 sizeof (int), class, get_sensor_data, NULL);
2624 } else if (strcmp(class, PICL_PROP_FAN_SPEED) == 0) {
2627 sizeof (int), class, get_sensor_data, NULL);
2628 } else if (strcmp(class, PICL_PROP_FAN_SPEED_UNIT) == 0) {
2631 MAX_SPEED_UNIT_LEN, class, get_sensor_data, NULL);
2632 } else if (strcmp(class, PICL_PROP_CONDITION) == 0) {
2635 MAX_CONDITION_LEN, class, get_sensor_data, NULL);
2636 } else if (strcmp(class, PICL_PROP_STATE) == 0) {
2639 PICL_VOLATILE, MAX_STATE_LEN, class, get_led_data,
2644 sizeof (float), class, get_sensor_data, NULL);
2647 syslog(LOG_ERR, PROPINFO_FAIL, class, err);
2653 syslog(LOG_ERR, ADD_PROP_FAIL, class, err);
2703 char class[PICL_CLASSNAMELEN_MAX];
2773 class, sizeof (class));
2774 if (err == PICL_SUCCESS && strcmp(class,
2870 char class[PICL_CLASSNAMELEN_MAX];
2907 class, sizeof (class));
2908 if (err == PICL_SUCCESS && strcmp(class, PICL_CLASS_CPU) == 0)