Lines Matching defs:device

130  * Check the type of the given device.
132 * @param device
133 * the device whose type to check
136 * the type of the device against which to compare
138 * @return B_TRUE if the device is of the given type, B_FALSE
143 devconfig_t *device,
148 if (device == NULL) {
152 if (devconfig_get_type(device, &curtype) != 0) {
180 devconfig_t *device,
191 /* For each component of this device... */
192 for (list = devconfig_get_components(device);
218 /* Attach new component to given device */
220 device, dlist_append(dlist_new_item(*component),
221 devconfig_get_components(device), AT_TAIL));
229 * Set the available devices for use in creating this device
231 * @param device
232 * a devconfig_t representing the device to modify
235 * A NULL-terminated array of device names
239 devconfig_t *device,
242 device->available = available;
246 * Get the available devices for use in creating this device
248 * @param device
249 * a devconfig_t representing the device to examine
252 * A NULL-terminated array of device names
256 devconfig_t *device)
258 return (device->available);
263 * device
265 * @param device
266 * a devconfig_t representing the device to modify
269 * A NULL-terminated array of device names
273 devconfig_t *device,
276 device->unavailable = unavailable;
280 * Get the unavailable devices for use in creating this device
282 * @param device
283 * a devconfig_t representing the device to examine
286 * A NULL-terminated array of device names
290 devconfig_t *device)
292 return (device->unavailable);
296 * Set the subcomponent devices of a given device
298 * @param device
299 * a devconfig_t representing the device to examine
306 devconfig_t *device,
309 device->components = components;
313 * Get the subcomponent devices of a given device
315 * @param device
316 * a devconfig_t representing the device to examine
322 devconfig_t *device)
324 return (device->components);
328 * Set the device name
330 * @param device
331 * a devconfig_t representing the device to modify
334 * the value to set as the device name
345 devconfig_t *device,
348 return (set_string(device->attributes, ATTR_NAME, name));
358 * the value to set as the device name
384 * Set the device name
390 * the value to set as the device name
414 * Set the device name
420 * the value to set as the device name
444 * Get the device name
450 * RETURN: the device name
461 devconfig_t *device,
464 int error = get_string(device->attributes, ATTR_NAME, name);
468 volume_set_error(gettext("device name not set"));
476 * Set the device type
478 * @param device
479 * a devconfig_t representing the device to modify
482 * the value to set as the device type
493 devconfig_t *device,
496 return (set_uint16(device->attributes, ATTR_TYPE, (uint16_t)type));
500 * Get the device type
502 * @param device
503 * a devconfig_t representing the device to examine
506 * RETURN: the device type
517 devconfig_t *device,
521 int error = get_uint16(device->attributes, ATTR_TYPE, &val);
526 volume_set_error(gettext("device type not set"));
539 * Set the device size (for volume, mirror, stripe, concat) in bytes
545 * @param device
546 * a devconfig_t representing the device to modify
549 * the value to set as the device size in bytes
560 devconfig_t *device,
572 return (set_uint64(device->attributes,
577 * Get the device size (for volume, mirror, stripe, concat) in bytes
583 * @param device
584 * a devconfig_t representing the device to examine
587 * RETURN: the device size in bytes
598 devconfig_t *device,
602 device->attributes, ATTR_SIZEINBYTES, size_in_bytes);
614 * Set the device size in blocks
616 * @param device
617 * a devconfig_t representing the device to modify
620 * the value to set as the device size in blocks
631 devconfig_t *device,
642 return (set_uint64(device->attributes,
647 * Get the device size in blocks
649 * @param device
650 * a devconfig_t representing the device to examine
653 * RETURN: the device size in blocks
664 devconfig_t *device,
668 device->attributes, ATTR_SIZEINBLOCKS, size_in_blocks);
706 * @param device
707 * a devconfig_t representing the device to examine
763 * @param device
764 * a devconfig_t representing the device to examine
829 * @param device
830 * a devconfig_t representing the device to examine
887 * @param device
888 * a devconfig_t representing the device to examine
951 * @param device
952 * a devconfig_t representing the device to examine
1022 * @param device
1023 * a devconfig_t representing the device to examine
1087 * @param device
1088 * a devconfig_t representing the device to examine
1154 * @param device
1155 * a devconfig_t representing the device to examine
1234 * @param device
1235 * a devconfig_t representing the device to examine
1300 * @param device
1301 * a devconfig_t representing the device to examine
1365 * @param device
1366 * a devconfig_t representing the device to examine
1422 * @param device
1423 * a devconfig_t representing the device to examine
1543 * @param device
1551 devconfig_t *device,
1566 if (device == NULL) {
1571 if (devconfig_get_type(device, &type) == 0) {
1576 if (devconfig_get_name(device, &str) == 0) {
1581 if (devconfig_get_size(device, &val64) == 0) {
1586 if (devconfig_get_size_in_blocks(device, &val64) == 0) {
1591 if (devconfig_get_volume_usehsp(device, &bool) == 0) {
1599 device, &val16) == 0) {
1604 if (devconfig_get_volume_npaths(device, &val16) == 0) {
1612 if (devconfig_get_mirror_nsubs(device, &val16) == 0) {
1617 if (devconfig_get_mirror_read(device, &read) == 0) {
1623 if (devconfig_get_mirror_write(device, &write) == 0) {
1629 if (devconfig_get_mirror_pass(device, &val16) == 0) {
1636 if (devconfig_get_stripe_mincomp(device, &val16) == 0) {
1641 if (devconfig_get_stripe_maxcomp(device, &val16) == 0) {
1646 if (devconfig_get_stripe_interlace(device, &val64) == 0) {
1653 if (devconfig_get_slice_index(device, &val16) == 0) {
1658 if (devconfig_get_slice_start_block(device, &val64) == 0) {
1664 array = devconfig_get_available(device);
1672 array = devconfig_get_unavailable(device);
1682 comps = devconfig_get_components(device);