Lines Matching refs:device

101  * Enumeration defining physical or logical device types
139 * devconfig_t - struct to hold a device configuration hierarchy
143 /* Attributes of this device */
147 * Available devices for use in construction of this device
153 * Unavailable devices for use in construction of this device
159 * Subcomponents (devconfig_t) of this device
196 * Check the type of the given device.
198 * @param device
199 * the device whose type to check
202 * the type of the device against which to compare
204 * @return B_TRUE if the device is of the given type, B_FALSE
207 extern boolean_t devconfig_isA(devconfig_t *device, component_type_t type);
224 extern int devconfig_get_component(devconfig_t *device,
228 * Set the available devices for use in creating this device
230 * @param device
231 * a devconfig_t representing the device to modify
234 * A NULL-terminated array of device names
236 extern void devconfig_set_available(devconfig_t *device, char **available);
239 * Get the available devices for use in creating this device
241 * @param device
242 * a devconfig_t representing the device to examine
245 * A NULL-terminated array of device names
247 extern char ** devconfig_get_available(devconfig_t *device);
251 * device
253 * @param device
254 * a devconfig_t representing the device to modify
257 * A NULL-terminated array of device names
259 extern void devconfig_set_unavailable(devconfig_t *device, char **unavailable);
262 * Get the unavailable devices for use in creating this device
264 * @param device
265 * a devconfig_t representing the device to examine
268 * A NULL-terminated array of device names
270 extern char ** devconfig_get_unavailable(devconfig_t *device);
273 * Set the subcomponent devices of a given device
275 * @param device
276 * a devconfig_t representing the device to examine
281 extern void devconfig_set_components(devconfig_t *device, dlist_t *components);
284 * Get the subcomponent devices of a given device
286 * @param device
287 * a devconfig_t representing the device to examine
291 extern dlist_t *devconfig_get_components(devconfig_t *device);
294 * Set the device name
296 * @param device
297 * a devconfig_t representing the device to modify
300 * the value to set as the device name
309 extern int devconfig_set_name(devconfig_t *device, char *name);
318 * the value to set as the device name
330 * Set the device name
336 * the value to set as the device name
348 * Set the device name
354 * the value to set as the device name
366 * Get the device name
372 * RETURN: the device name
381 extern int devconfig_get_name(devconfig_t *device, char **name);
384 * Set the device type
386 * @param device
387 * a devconfig_t representing the device to modify
390 * the value to set as the device type
399 extern int devconfig_set_type(devconfig_t *device, component_type_t type);
402 * Get the device type
404 * @param device
405 * a devconfig_t representing the device to examine
408 * RETURN: the device type
417 extern int devconfig_get_type(devconfig_t *device, component_type_t *type);
420 * Set the device size (for volume, mirror, stripe, concat) in bytes
426 * @param device
427 * a devconfig_t representing the device to modify
430 * the value to set as the device size in bytes
439 extern int devconfig_set_size(devconfig_t *device, uint64_t size_in_bytes);
442 * Get the device size (for volume, mirror, stripe, concat) in bytes
448 * @param device
449 * a devconfig_t representing the device to examine
452 * RETURN: the device size in bytes
461 extern int devconfig_get_size(devconfig_t *device, uint64_t *size_in_bytes);
464 * Set the device size in blocks
466 * @param device
467 * a devconfig_t representing the device to modify
470 * the value to set as the device size in blocks
480 devconfig_t *device, uint64_t size_in_blocks);
483 * Get the device size in blocks
485 * @param device
486 * a devconfig_t representing the device to examine
489 * RETURN: the device size in blocks
499 devconfig_t *device, uint64_t *size_in_blocks);
522 * @param device
523 * a devconfig_t representing the device to examine
559 * @param device
560 * a devconfig_t representing the device to examine
597 * @param device
598 * a devconfig_t representing the device to examine
634 * @param device
635 * a devconfig_t representing the device to examine
672 * @param device
673 * a devconfig_t representing the device to examine
709 * @param device
710 * a devconfig_t representing the device to examine
746 * @param device
747 * a devconfig_t representing the device to examine
783 * @param device
784 * a devconfig_t representing the device to examine
820 * @param device
821 * a devconfig_t representing the device to examine
859 * @param device
860 * a devconfig_t representing the device to examine
896 * @param device
897 * a devconfig_t representing the device to examine
932 * @param device
933 * a devconfig_t representing the device to examine
985 * @param device
991 extern void devconfig_dump(devconfig_t *device, char *prefix);