Lines Matching defs:options
162 * Implement set/get of bus private options.
166 const char *options, char **resultsp)
173 dprintf("private_options(path=%s, connection=%s, options='%s')\n",
174 path, connection, options);
177 if ((rv = pack_properties(options, &prop)) != 0) {
257 * Given a specified set/get command and an options string,
259 * contains the specified options.
262 pack_properties(const char *options, ddi_hp_property_t *prop)
271 /* Do nothing if options string is empty */
272 if ((len = strlen(options)) == 0) {
273 dprintf("pack_properties: options string is empty.\n");
279 log_err("Failed to allocate buffer for private options.\n");
282 (void) strlcpy(tmp, options, len + 1);
286 log_err("Failed to allocate private options nvlist.\n");
319 log_err("Failed to pack private options nvlist.\n");
338 * bus private options, unpack the nvlist and expand its
339 * contents into an options string.
347 char *name, *value, *options;
361 log_err("Failed to unpack private options nvlist.\n");
365 /* Compute the size of the options string */
381 /* Allocate the resulting options string */
382 if ((options = (char *)calloc(len, sizeof (char))) == NULL) {
383 log_err("Failed to allocate private options string.\n");
388 /* Copy name/value pairs into the options string */
400 (void) strlcat(options, ",", len);
402 (void) strlcat(options, name, len);
407 (void) strlcat(options, "=", len);
408 (void) strlcat(options, value, len);
418 *optionsp = options;