Home
last modified time | relevance | path

Searched refs:errstring (Results 1 – 25 of 44) sorted by relevance

12

/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_scsi.c63 char **errstring, in cfga_change_state() argument
69 if (errstring != NULL) { in cfga_change_state()
70 *errstring = NULL; in cfga_change_state()
82 cfga_err(errstring, 0, ERRARG_OPT_INVAL, options, 0); in cfga_change_state()
86 if ((ret = apidt_create(ap_id, &apidt, errstring)) != SCFGA_OK) { in cfga_change_state()
96 errstring); in cfga_change_state()
99 errstring); in cfga_change_state()
114 char **errstring, in cfga_private_func() argument
121 if (errstring != NULL) in cfga_private_func()
122 *errstring = NULL; in cfga_private_func()
[all …]
H A Dcfga_ctl.c44 prompt_t *pt, cfga_flags_t flags, int quiesce, char **errstring);
66 char **errstring) in bus_change_state() argument
84 cfga_err(errstring, 0, ERR_NOT_BUSAPID, 0); in bus_change_state()
91 cfga_err(errstring, l_errno, ERR_BUS_GETSTATE, 0); in bus_change_state()
111 cfga_err(errstring, 0, ERR_CTRLR_CRIT, 0); in bus_change_state()
148 cfga_err(errstring, 0, in bus_change_state()
172 errstring, flags, 1)) != SCFGA_OK) { in bus_change_state()
177 errstring, flags)) != SCFGA_OK) { in bus_change_state()
192 cfga_err(errstring, l_errno, errid, 0); in bus_change_state()
202 errstring, in bus_change_state()
[all …]
H A Dcfga_rcm.c39 scsi_rcm_offline(char **rsrclist, char **errstring, cfga_flags_t flags) in scsi_rcm_offline() argument
50 if ((ret = scsi_rcm_init(0, errstring, &rcm_handle)) in scsi_rcm_offline()
60 cfga_err(errstring, 0, ERRARG_RCM_CLIENT_OFFLINE, 0); in scsi_rcm_offline()
62 cfga_err(errstring, 0, ERRARG_RCM_OFFLINE, 0); in scsi_rcm_offline()
65 (void) scsi_rcm_info_table(rinfo, errstring); in scsi_rcm_offline()
84 scsi_rcm_online(char **rsrclist, char **errstring, cfga_flags_t flags) in scsi_rcm_online() argument
93 if ((ret = scsi_rcm_init(0, errstring, &rcm_handle)) in scsi_rcm_online()
99 cfga_err(errstring, 0, ERRARG_RCM_ONLINE, 0); in scsi_rcm_online()
101 (void) scsi_rcm_info_table(rinfo, errstring); in scsi_rcm_online()
117 scsi_rcm_remove(char **rsrclist, char **errstring, cfga_flags_t flags) in scsi_rcm_remove() argument
[all …]
H A Dcfga_scsi.h368 char **errstring);
370 apid_t *apidp, cfga_flags_t flags, char **errstring);
372 prompt_t *argsp, cfga_flags_t flags, char **errstring);
374 prompt_t *argsp, cfga_flags_t flags, char **errstring);
376 prompt_t *argsp, cfga_flags_t flags, char **errstring);
378 prompt_t *argsp, cfga_flags_t flags, char **errstring);
380 prompt_t *argsp, cfga_flags_t flags, char **errstring);
382 prompt_t *argsp, cfga_flags_t flags, char **errstring);
387 ldata_list_t **llpp, int *nelem, char **errstring);
389 cfga_list_data_t **ap_id_list, int *nlistp, char **errstring);
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rcm.c41 char **errstring; member
62 fp_rcm_offline(char *rsrc, char **errstring, cfga_flags_t flags) in fp_rcm_offline() argument
70 if ((ret = fp_rcm_init(rsrc, flags, errstring, &rflags, &rsrc_fixed)) in fp_rcm_offline()
76 cfga_err(errstring, 0, ERRARG_RCM_OFFLINE, rsrc_fixed, 0); in fp_rcm_offline()
78 (void) fp_rcm_info_table(rinfo, errstring); in fp_rcm_offline()
82 (void) fp_rcm_online(rsrc, errstring, flags); in fp_rcm_offline()
97 fp_rcm_online(char *rsrc, char **errstring, cfga_flags_t flags) in fp_rcm_online() argument
103 if ((ret = fp_rcm_init(rsrc, flags, errstring, NULL, &rsrc_fixed)) in fp_rcm_online()
109 cfga_err(errstring, 0, ERRARG_RCM_ONLINE, rsrc_fixed, 0); in fp_rcm_online()
110 (void) fp_rcm_info_table(rinfo, errstring); in fp_rcm_online()
[all …]
H A Dcfga_cs.c67 uchar_t dev_dtype, char **errstring) in do_devctl_dev_create() argument
76 cfga_err(errstring, errno, ERRARG_DC_DDEF_ALLOC, drvr_name, 0); in do_devctl_dev_create()
82 cfga_err(errstring, 0, ERR_APID_INVAL, 0); in do_devctl_dev_create()
89 cfga_err(errstring, errno, ERRARG_DC_BYTE_ARRAY, in do_devctl_dev_create()
96 cfga_err(errstring, errno, ERRARG_DC_BUS_ACQUIRE, in do_devctl_dev_create()
113 cfga_err(errstring, errno, in do_devctl_dev_create()
116 cfga_err(errstring, errno, ERRARG_BUS_DEV_CREATE, in do_devctl_dev_create()
146 dev_rcm_online(apid_t *apidt, int count, cfga_flags_t flags, char **errstring) in dev_rcm_online() argument
164 if (fp_rcm_online(lunlistp->path, errstring, flags) != in dev_rcm_online()
182 char **errstring) in dev_rcm_online_nonoperationalpath() argument
[all …]
H A Dcfga_rep.c220 update_fabric_wwn_list(int cmd, const char *update_str, char **errstring) in update_fabric_wwn_list() argument
249 cfga_err(errstring, errno, ERR_UPD_REP, 0); in update_fabric_wwn_list()
256 cfga_err(errstring, errno, ERR_UPD_REP, 0); in update_fabric_wwn_list()
262 cfga_err(errstring, 0, ERR_UPD_REP, 0); in update_fabric_wwn_list()
268 cfga_err(errstring, errno, ERR_UPD_REP, 0); in update_fabric_wwn_list()
281 cfga_err(errstring, errno, ERR_UPD_REP, 0); in update_fabric_wwn_list()
296 cfga_err(errstring, errno, ERR_UPD_REP, 0); in update_fabric_wwn_list()
307 cfga_err(errstring, errno, ERR_UPD_REP, 0); in update_fabric_wwn_list()
316 cfga_err(errstring, errno, ERR_UPD_REP, 0); in update_fabric_wwn_list()
324 cfga_err(errstring, errno, ERR_UPD_REP, 0); in update_fabric_wwn_list()
[all …]
H A Dcfga_fp.c46 char **errstring, in cfga_change_state() argument
59 if (errstring != NULL) { in cfga_change_state()
60 *errstring = NULL; in cfga_change_state()
74 if ((ret = apidt_create(ap_id, &apidt, errstring)) != FPCFGA_OK) { in cfga_change_state()
98 cfga_err(errstring, 0, ERRARG_OPT_INVAL, in cfga_change_state()
108 cfga_err(errstring, 0, ERRARG_OPT_INVAL, in cfga_change_state()
120 cfga_err(errstring, 0, ERRARG_OPT_INVAL, options, 0); in cfga_change_state()
132 cfga_err(errstring, 0, ERR_APID_INVAL, 0); in cfga_change_state()
137 &handle, &portIndex, &portAttrs, errstring)) == in cfga_change_state()
140 flags, errstring, handle, portAttrs); in cfga_change_state()
[all …]
H A Dcfga_fp.h460 char **errstring);
462 char **errstring);
464 char **errstring);
466 char **errstring);
471 ldata_list_t **ldatalistp, int *nelem, char **errstring);
473 ldata_list_t **llpp, int *nelemp, char **errstring);
475 cfga_list_data_t **ap_id_list, int *nlistp, char **errstring);
510 char **errstring);
519 char **errstring);
521 void cfga_err(char **errstring, int use_errno, ...);
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/common/
H A Dopl_dev_led.c51 opl_get_scf_logical_disk(const apid_t *apidp, char **errstring, in opl_get_scf_logical_disk() argument
60 cfga_err(errstring, ENOMEM, ERR_OP_FAILED, 0); in opl_get_scf_logical_disk()
70 cfga_err(errstring, 0, ERR_OP_FAILED, 0); in opl_get_scf_logical_disk()
75 cfga_err(errstring, 0, ERR_UNKNOWN, 0); in opl_get_scf_logical_disk()
90 opl_disk_led_control(apid_t *apidp, char **errstring, struct cfga_msg *msgp, in opl_disk_led_control() argument
99 cfga_err(errstring, 0, ERR_UNKNOWN, 0, 0); in opl_disk_led_control()
103 retval = opl_get_scf_logical_disk((const apid_t *)apidp, errstring, in opl_disk_led_control()
113 cfga_err(errstring, errno, ERRARG_OPEN, SCF_DRV, 0); in opl_disk_led_control()
139 cfga_err(errstring, errno, ERR_OP_FAILED, 0, 0); in opl_disk_led_control()
213 char **errstring, in opl_setlocator() argument
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c400 ib_err_msg(char **errstring, cfga_ib_ret_t rv, const char *ap_id, int l_errno) in ib_err_msg() argument
404 if (errstring == NULL) { in ib_err_msg()
418 ib_set_msg(errstring, ERR_STR(rv), NULL); in ib_err_msg()
443 ib_set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "", NULL); in ib_err_msg()
448 ib_set_msg(errstring, ERR_STR(rv), errno_str, in ib_err_msg()
460 ib_set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "\n", in ib_err_msg()
465 ib_set_msg(errstring, ERR_STR(CFGA_IB_INTERNAL_ERR), NULL); in ib_err_msg()
545 ib_verify_params(const char *ap_id, const char *options, char **errstring) in ib_verify_params() argument
547 if (errstring != NULL) { in ib_verify_params()
548 *errstring = NULL; in ib_verify_params()
[all …]
H A Dcfga_rcm.c63 ib_rcm_offline(const char *rsrc, char **errstring, char *rsrc_fixed, in ib_rcm_offline() argument
73 if ((ret = ib_rcm_init(rsrc, flags, errstring, &rflags)) != in ib_rcm_offline()
85 (void) ib_rcm_info_table(rinfo, errstring); in ib_rcm_offline()
90 DPRINTF("ib_rcm_offline: table = %s\n", *errstring); in ib_rcm_offline()
93 (void) ib_rcm_online(rsrc, errstring, in ib_rcm_offline()
119 ib_rcm_online(const char *rsrc, char **errstring, char *rsrc_fixed, in ib_rcm_online() argument
127 if ((ret = ib_rcm_init(rsrc, flags, errstring, NULL)) != CFGA_IB_OK) { in ib_rcm_online()
135 (void) ib_rcm_info_table(rinfo, errstring); in ib_rcm_online()
161 ib_rcm_remove(const char *rsrc, char **errstring, char *rsrc_fixed, in ib_rcm_remove() argument
169 if ((ret = ib_rcm_init(rsrc, flags, errstring, NULL)) != CFGA_IB_OK) { in ib_rcm_remove()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema.c380 mema_err(ac_cfga_cmd_t *ac, int ret_errno, char **errstring, int cmd) in mema_err() argument
398 __fmt_errstring(errstring, strlen(syserr), in mema_err()
454 char **errstring) in ap_stat() argument
465 __fmt_errstring(errstring, strlen(bank_spec), in ap_stat()
482 __fmt_errstring(errstring, strlen(syserr) + in ap_stat()
495 mema_err(&cmd, ret_errno, errstring, CMD_MEM_STAT); in ap_stat()
539 char **errstring) in prom_do_options() argument
554 __fmt_errstring(errstring, 0, in prom_do_options()
558 __fmt_errstring(errstring, 0, in prom_do_options()
565 __fmt_errstring(errstring, 0, in prom_do_options()
[all …]
H A Dmema_util.c51 char **errstring, in __fmt_errstring() argument
63 if ((errstring == NULL) || (*errstring != NULL)) in __fmt_errstring()
78 *errstring = ebuf; in __fmt_errstring()
/illumos-gate/usr/src/lib/cfgadm_plugins/sysctrl/common/
H A Dcfga.c342 cfga_err(sysc_cfga_cmd_t *sc, char **errstring, ...) in cfga_err() argument
360 if (errstring == NULL) { in cfga_err()
363 va_start(ap, errstring); in cfga_err()
479 *errstring = p; in cfga_err()
481 printf("%s\n", *errstring); in cfga_err()
875 char **errstring, in cfga_change_state() argument
894 if (errstring != NULL) in cfga_change_state()
895 *errstring = NULL; in cfga_change_state()
904 cfga_err(NULL, errstring, ERR_OPT_INVAL, options, 0); in cfga_change_state()
910 cfga_err(NULL, errstring, ERR_AP_INVAL, ap_id, 0); in cfga_change_state()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/shp/common/
H A Dshp.c157 static void cfga_err(char **errstring, ...);
159 char *slot_name, char **errstring);
286 physpath2node(const char *physpath, char **errstring, hp_node_t *nodep) in physpath2node() argument
327 assert(errstring != NULL); in physpath2node()
328 *errstring = strdup(MSG_HOTPLUG_DISABLED); in physpath2node()
618 struct cfga_msg *msgp, char **errstring, cfga_flags_t flags) in cfga_change_state() argument
629 if (errstring != NULL) in cfga_change_state()
630 *errstring = NULL; in cfga_change_state()
635 rv = physpath2node(ap_id, errstring, &node); in cfga_change_state()
665 cfga_err(errstring, ERR_AP_ERR, 0); in cfga_change_state()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/pci/common/
H A Dcfga.c153 static void cfga_err(char **errstring, ...);
155 char *slot_name, char **errstring);
506 rcm_handle_t **rhandlep, char **errstring, cfga_flags_t flags) in check_rcm() argument
534 pci_rcm_info_table(rinfo, errstring); in check_rcm()
542 pci_rcm_info_table(rinfo, errstring); in check_rcm()
576 struct cfga_msg *msgp, char **errstring, cfga_flags_t flags) in cfga_change_state() argument
590 if (errstring != NULL) in cfga_change_state()
591 *errstring = NULL; in cfga_change_state()
598 cfga_err(errstring, CMD_ACQUIRE, ap_id, 0); in cfga_change_state()
608 cfga_err(errstring, CMD_GETSTAT, ap_id, 0); in cfga_change_state()
[all …]
/illumos-gate/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c190 cfga_err_t (*stat_plugin)(list_stat_t *, lib_loc_t *, char **errstring);
220 char **errstring);
234 char **errstring);
259 char **errstring);
261 char **errstring);
263 char **errstring);
266 char **errstring);
268 char **errstring);
270 char **errstring);
283 char **errstring);
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_rcm.c52 usb_rcm_offline(const char *rsrc, char **errstring, char *rsrc_fixed, in usb_rcm_offline() argument
62 if ((ret = usb_rcm_init(rsrc, flags, errstring, &rflags)) != in usb_rcm_offline()
75 (void) usb_rcm_info_table(rinfo, errstring); in usb_rcm_offline()
80 DPRINTF("usb_rcm_offline: table = %s\n", *errstring); in usb_rcm_offline()
83 (void) usb_rcm_online(rsrc, errstring, in usb_rcm_offline()
98 usb_rcm_online(const char *rsrc, char **errstring, char *rsrc_fixed, in usb_rcm_online() argument
106 if ((ret = usb_rcm_init(rsrc, flags, errstring, NULL)) != CFGA_USB_OK) { in usb_rcm_online()
115 (void) usb_rcm_info_table(rinfo, errstring); in usb_rcm_online()
130 usb_rcm_remove(const char *rsrc, char **errstring, char *rsrc_fixed, in usb_rcm_remove() argument
138 if ((ret = usb_rcm_init(rsrc, flags, errstring, NULL)) != CFGA_USB_OK) { in usb_rcm_remove()
[all …]
H A Dcfga_usb.c326 usb_err_msg(char **errstring, cfga_usb_ret_t rv, const char *ap_id, int l_errno) in usb_err_msg() argument
328 if (errstring == NULL) { in usb_err_msg()
351 set_msg(errstring, ERR_STR(rv), NULL); in usb_err_msg()
368 (void) set_msg(errstring, ERR_STR(rv), in usb_err_msg()
380 set_msg(errstring, ERR_STR(rv), errno_str, in usb_err_msg()
390 set_msg(errstring, ERR_STR(rv), "ap_id: ", ap_id, "\n", in usb_err_msg()
397 set_msg(errstring, ERR_STR(CFGA_USB_INTERNAL_ERROR), NULL); in usb_err_msg()
448 char **errstring) in verify_params() argument
450 if (errstring != NULL) { in verify_params()
451 *errstring = NULL; in verify_params()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_rcm.c52 sata_rcm_offline(const char *rsrc, char **errstring, char *rsrc_fixed, in sata_rcm_offline() argument
60 if ((ret = sata_rcm_init(rsrc, flags, errstring, &rflags)) != in sata_rcm_offline()
69 (void) sata_rcm_info_table(rinfo, errstring); in sata_rcm_offline()
75 (void) sata_rcm_online(rsrc, errstring, in sata_rcm_offline()
89 sata_rcm_online(const char *rsrc, char **errstring, char *rsrc_fixed, in sata_rcm_online() argument
95 if ((ret = sata_rcm_init(rsrc, flags, errstring, NULL)) != in sata_rcm_online()
103 (void) sata_rcm_info_table(rinfo, errstring); in sata_rcm_online()
117 sata_rcm_remove(const char *rsrc, char **errstring, char *rsrc_fixed, in sata_rcm_remove() argument
123 if ((ret = sata_rcm_init(rsrc, flags, errstring, NULL)) != in sata_rcm_remove()
132 (void) sata_rcm_info_table(rinfo, errstring); in sata_rcm_remove()
[all …]
H A Dcfga_sata.c226 verify_params(const char *ap_id, const char *options, char **errstring);
460 char **errstring, in sata_err_msg() argument
465 if (errstring == NULL) { in sata_err_msg()
488 set_msg(errstring, ERR_STR(rv), NULL); in sata_err_msg()
493 set_msg(errstring, ERR_STR(rv), NULL); in sata_err_msg()
494 set_msg(errstring, "\n", in sata_err_msg()
496 set_msg(errstring, sata_help[HELP_RESET_PORT], NULL); in sata_err_msg()
497 set_msg(errstring, sata_help[HELP_RESET_DEVICE], NULL); in sata_err_msg()
498 set_msg(errstring, sata_help[HELP_RESET_ALL], NULL); in sata_err_msg()
499 set_msg(errstring, sata_help[HELP_PORT_ACTIVATE], NULL); in sata_err_msg()
[all …]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_devperm.c91 char errstring[MAX_LINELEN]; in setdevaccess() local
112 (void) snprintf(errstring, MAX_LINELEN, in setdevaccess()
115 (*errmsg)(errstring); in setdevaccess()
135 (void) snprintf(errstring, MAX_LINELEN, in setdevaccess()
138 (*errmsg)(errstring); in setdevaccess()
144 (void) snprintf(errstring, MAX_LINELEN, in setdevaccess()
147 (*errmsg)(errstring); in setdevaccess()
164 char line[MAX_LINELEN], errstring[MAX_LINELEN]; in logindevperm() local
178 (void) snprintf(errstring, MAX_LINELEN, in logindevperm()
181 (*errmsg)(errstring); in logindevperm()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dcfga.c47 char **errstring, in cfga_change_state() argument
60 if ((a = apd_alloc(ap_id, flags, errstring, msgp, confp)) == NULL) in cfga_change_state()
106 char **errstring, in cfga_private_func() argument
117 if ((a = apd_alloc(ap_id, flags, errstring, msgp, confp)) == NULL) in cfga_private_func()
140 char **errstring, in cfga_test() argument
159 if ((a = apd_alloc(ap_id, flags, errstring, msgp, NULL)) == NULL) in cfga_test()
178 char **errstring, in cfga_list_ext() argument
196 if ((a = apd_alloc(ap_id, flags, errstring, NULL, NULL)) == NULL) in cfga_list_ext()
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Drdr_messages.c320 static int find_errstring_sizes(char **errstring,
337 static int cleanup_errstring(char **errstring);
1083 cleanup_errstring(cparam->errstring); in rdr_cleanup_params()
1106 cleanup_errstring(pparam->errstring); in rdr_cleanup_params()
1125 cleanup_errstring(tparam->errstring); in rdr_cleanup_params()
1161 cleanup_errstring(lparam->errstring); in rdr_cleanup_params()
1962 if (params->errstring != NULL) { in pack_change_state_request()
2078 params->errstring = (char **)malloc(sizeof (char *)); in unpack_change_state_request()
2079 if (params->errstring == NULL) { in unpack_change_state_request()
2082 *(params->errstring) = NULL; in unpack_change_state_request()
[all …]

12