* @brief Get the device's ivars field * * The ivars field is used by the parent device to store per-device * state (e.g. the physical location of the device or a list of * resources). */
| 2562 | * resources). |
| 2563 | */ |
| 2564 | void * |
| 2565 | device_get_ivars(device_t dev) |
| 2566 | { |
| 2567 | KASSERT(dev != NULL, ("device_get_ivars(NULL, ...)")); |
| 2568 | return (dev->ivars); |
| 2569 | } |
| 2570 | |
| 2571 | /** |
| 2572 | * @brief Set the device's ivars field |
no outgoing calls
no test coverage detected