FreeBSD xen subsystem code
xenbusb_softc Struct Reference

Container for all state needed to manage a Xenbus Bus attachment. More...

#include <xenbusb.h>

Collaboration diagram for xenbusb_softc:

Data Fields

struct xs_watch xbs_device_watch
 
struct mtx xbs_lock
 
xenbusb_softc_flag xbs_flags
 
struct task xbs_probe_children
 
struct intr_config_hook xbs_attach_ch
 
u_int xbs_connecting_children
 
device_t xbs_dev
 
const char * xbs_node
 
u_int xbs_id_components
 

Detailed Description

Container for all state needed to manage a Xenbus Bus attachment.

Definition at line 62 of file xenbusb.h.

Field Documentation

◆ xbs_attach_ch

struct intr_config_hook xenbusb_softc::xbs_attach_ch

Config Hook used to block boot processing until XenBus devices complete their connection processing with other VMs.

Definition at line 87 of file xenbusb.h.

Referenced by xenbusb_attach().

◆ xbs_connecting_children

u_int xenbusb_softc::xbs_connecting_children

The number of children for this bus that are still in the connecting (to other VMs) state. This variable is used to determine when to release xbs_attach_ch.

Definition at line 94 of file xenbusb.h.

Referenced by xenbusb_add_device(), and xenbusb_release_confighook().

◆ xbs_dev

device_t xenbusb_softc::xbs_dev

The NewBus device_t for this bus attachment.

Definition at line 97 of file xenbusb.h.

Referenced by xenbusb_attach(), xenbusb_devices_changed(), and xenbusb_enumerate_bus().

◆ xbs_device_watch

struct xs_watch xenbusb_softc::xbs_device_watch

XenStore watch used to monitor the subtree of the XenStore where devices for this bus attachment arrive
and depart.

Definition at line 68 of file xenbusb.h.

◆ xbs_flags

xenbusb_softc_flag xenbusb_softc::xbs_flags

State flags.

Definition at line 74 of file xenbusb.h.

Referenced by xenbusb_attach(), xenbusb_back_attach(), and xenbusb_release_confighook().

◆ xbs_id_components

u_int xenbusb_softc::xbs_id_components

The number of path components (strings separated by the '/' character) that make up the device ID on this bus.

Definition at line 109 of file xenbusb.h.

Referenced by xenbusb_attach(), and xenbusb_devices_changed().

◆ xbs_lock

struct mtx xenbusb_softc::xbs_lock

Mutex used to protect fields of the xenbusb_softc.

Definition at line 71 of file xenbusb.h.

Referenced by xenbusb_add_device(), xenbusb_attach(), xenbusb_back_attach(), and xenbusb_release_confighook().

◆ xbs_node

const char* xenbusb_softc::xbs_node

The VM relative path to the XenStore subtree this bus attachment manages.

Definition at line 103 of file xenbusb.h.

Referenced by xenbusb_add_device(), xenbusb_attach(), xenbusb_back_enumerate_type(), xenbusb_enumerate_bus(), and xenbusb_front_enumerate_type().

◆ xbs_probe_children

struct task xenbusb_softc::xbs_probe_children

A dedicated task for processing child arrival and departure events.

Definition at line 80 of file xenbusb.h.

Referenced by xenbusb_devices_changed().


The documentation for this struct was generated from the following file: