FreeBSD kernel /amd64 XEN device code
xbd_softc Struct Reference

#include <block.h>

Collaboration diagram for xbd_softc:

Data Fields

device_t xbd_dev
 
struct disk * xbd_disk
 
struct bio_queue_head xbd_bioq
 
int xbd_unit
 
xbd_flag_t xbd_flags
 
int xbd_qfrozen_cnt
 
int xbd_vdevice
 
xbd_state_t xbd_state
 
u_int xbd_ring_pages
 
uint32_t xbd_max_requests
 
uint32_t xbd_max_request_segments
 
uint32_t xbd_max_request_size
 
uint32_t xbd_max_request_indirectpages
 
grant_ref_t xbd_ring_ref [XBD_MAX_RING_PAGES]
 
blkif_front_ring_t xbd_ring
 
xen_intr_handle_t xen_intr_handle
 
struct gnttab_free_callback xbd_callback
 
xbd_cm_q_t xbd_cm_q [XBD_Q_COUNT]
 
bus_dma_tag_t xbd_io_dmat
 
int xbd_users
 
struct mtx xbd_io_lock
 
struct xbd_commandxbd_shadow
 

Detailed Description

Definition at line 173 of file block.h.

Field Documentation

◆ xbd_bioq

struct bio_queue_head xbd_softc::xbd_bioq

Definition at line 176 of file block.h.

Referenced by xbd_dequeue_bio(), xbd_enqueue_bio(), xbd_initq_bio(), and xbd_requeue_bio().

◆ xbd_callback

struct gnttab_free_callback xbd_softc::xbd_callback

Definition at line 190 of file block.h.

Referenced by xbd_bio_command().

◆ xbd_cm_q

◆ xbd_dev

device_t xbd_softc::xbd_dev

◆ xbd_disk

struct disk* xbd_softc::xbd_disk

◆ xbd_flags

◆ xbd_io_dmat

bus_dma_tag_t xbd_softc::xbd_io_dmat

Definition at line 192 of file block.h.

Referenced by xbd_connect(), xbd_free(), xbd_int(), xbd_queue_cb(), and xbd_queue_request().

◆ xbd_io_lock

struct mtx xbd_softc::xbd_io_lock

◆ xbd_max_request_indirectpages

uint32_t xbd_softc::xbd_max_request_indirectpages

Definition at line 186 of file block.h.

Referenced by xbd_connect(), xbd_free(), and xbd_queue_cb().

◆ xbd_max_request_segments

uint32_t xbd_softc::xbd_max_request_segments

Definition at line 184 of file block.h.

Referenced by xbd_bio_command(), xbd_connect(), xbd_dump(), and xbd_setup_sysctl().

◆ xbd_max_request_size

uint32_t xbd_softc::xbd_max_request_size

Definition at line 185 of file block.h.

Referenced by xbd_connect(), xbd_dump(), xbd_instance_create(), and xbd_setup_sysctl().

◆ xbd_max_requests

uint32_t xbd_softc::xbd_max_requests

Definition at line 183 of file block.h.

Referenced by xbd_connect(), xbd_free(), xbd_initialize(), and xbd_setup_sysctl().

◆ xbd_qfrozen_cnt

int xbd_softc::xbd_qfrozen_cnt

Definition at line 179 of file block.h.

Referenced by xbd_freeze(), xbd_startio(), and xbd_thaw().

◆ xbd_ring

blkif_front_ring_t xbd_softc::xbd_ring

◆ xbd_ring_pages

u_int xbd_softc::xbd_ring_pages

Definition at line 182 of file block.h.

Referenced by xbd_alloc_ring(), xbd_free_ring(), xbd_initialize(), and xbd_setup_sysctl().

◆ xbd_ring_ref

grant_ref_t xbd_softc::xbd_ring_ref[XBD_MAX_RING_PAGES]

Definition at line 187 of file block.h.

Referenced by xbd_alloc_ring(), xbd_attach(), and xbd_free_ring().

◆ xbd_shadow

struct xbd_command* xbd_softc::xbd_shadow

Definition at line 201 of file block.h.

Referenced by xbd_connect(), xbd_free(), and xbd_int().

◆ xbd_state

xbd_state_t xbd_softc::xbd_state

◆ xbd_unit

int xbd_softc::xbd_unit

Definition at line 177 of file block.h.

Referenced by xbd_instance_create().

◆ xbd_users

int xbd_softc::xbd_users

The number of people holding this device open. We won't allow a hot-unplug unless this is 0.

Definition at line 198 of file block.h.

Referenced by xbd_backend_changed(), xbd_close(), and xbd_open().

◆ xbd_vdevice

int xbd_softc::xbd_vdevice

Definition at line 180 of file block.h.

Referenced by xbd_attach(), and xbd_connect().

◆ xen_intr_handle

xen_intr_handle_t xbd_softc::xen_intr_handle

Definition at line 189 of file block.h.

Referenced by xbd_alloc_ring(), xbd_flush_requests(), xbd_free(), and xbd_initialize().


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