Lines Matching defs:psh

118  * *psh.
587 struct suri_handle **psh;
602 psh = *ppsh;
603 while (*psh != NULL) {
606 assert(suri_err_code((suri_handle_t)*psh) == ESURI_OK);
607 suri_iscsi = SURIH2ISCSI(*psh);
609 n = snprintf((*psh)->sh_uri, SURI_MAX_URI_LEN,
613 n = snprintf((*psh)->sh_uri, SURI_MAX_URI_LEN,
619 n = snprintf((*psh)->sh_uri, SURI_MAX_URI_LEN,
625 ++psh;
1262 suri_alloc_psh(struct suri_handle **psh, struct suri_handle ***ppsh)
1266 if ((*psh = (struct suri_handle *)suri_alloc()) == NULL)
1273 suri_free((suri_handle_t)*psh);
1276 **ppsh = *psh;
1282 * multiple handles in *psh. However, if an error is returned, only one handle
1283 * may be in *psh.
1285 * (1) if memory for *psh cannot be allocated, *psh is NULL and ESURI_NOMEM is
1288 * (2) if any error is returned with *psh set, *psh will contain one handle and
1295 * (4) if ESURI_OK is returned, there is at least one handle in *psh and all of
1296 * them are guaranteed to have ESURI_OK set. It is guaranteed that *psh will not
1299 * If *psh is set it is a newly allocated array and a consumer is expected to
1371 * and copies returned handles to a newly allocated *psh.
1373 * (1) if memory for *psh cannot be allocated, *psh is NULL and ESURI_NOMEM is
1376 * (2) if ESURI_ERR is returned and *psh is set, there is at least one handle in
1377 * *psh with a specific error set. Some handles may still contain ESURI_OK in
1380 * returned in *psh in this case.
1382 * (3) if ESURI_OK is returned, at least one handle is in *psh and all handles
1383 * have ESURI_OK set. It is guaranteed that *psh will not contain duplicates.