Lines Matching refs:result

50  * Add a property and value to a result set to be returned to a caller of
51 * libpower. The result list has the structure:
81 pm_result_add(nvlist_t **result, pm_authority_t authority, const char *pgname,
89 if (result == NULL || propname == NULL || propv == NULL) {
94 /* Allocate a new result list if necessary */
95 rp = *result;
97 errno = nvlist_alloc(result, NV_UNIQUE_NAME, 0);
101 rp = *result;
104 /* Get the list of values for this property from the result set */
110 * This property does not exist in the result set. Add it
111 * to the result
130 * to the result set.
142 * Create a new property entry in a result set as specified by pm_result_add
258 * Given a result set built by pm_result_add, above, created a new result set
262 pm_result_filter(nvlist_t **result, nvlist_t *nvl, pm_authority_t authority,
273 if (result == NULL || nvl == NULL) {
282 * result set.
310 "%s property %s not found in result set\n",
324 "%s property %s/%s not found in result set\n",
363 err = pm_result_merge(result, nvl, propname, authority);
373 * Add a specified nvpair to an existing result set
376 pm_result_merge(nvlist_t **result, nvlist_t *nvl, const char *propname,
385 if (result == NULL || nvl == NULL) {
391 if (*result == NULL) {
392 errno = nvlist_alloc(result, NV_UNIQUE_NAME, 0);
398 /* Add the property to the result set and retrieve it's value list */
400 (errno = nvlist_add_nvpair(*result, nvp)) != 0 ||
413 * from the result set.
499 pm_parse_boolean(const char *buf, boolean_t *result)
514 *result = B_TRUE;
518 *result = B_FALSE;
530 pm_parse_integer(const char *buf, int64_t *result)
549 if (sscanf(buf, "%lld", result) != 1) {