Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Data Fields
scsi_device Struct Reference

#include <scsi_device.h>

Public Member Functions

 DECLARE_BITMAP (supported_events, SDEV_EVT_MAXBITS)
 

Data Fields

struct Scsi_Hosthost
 
struct request_queue * request_queue
 
struct list_head siblings
 
struct list_head same_target_siblings
 
unsigned int device_busy
 
spinlock_t list_lock
 
struct list_head cmd_list
 
struct list_head starved_entry
 
struct scsi_cmndcurrent_cmnd
 
unsigned short queue_depth
 
unsigned short max_queue_depth
 
unsigned short last_queue_full_depth
 
unsigned short last_queue_full_count
 
unsigned long last_queue_full_time
 
unsigned long queue_ramp_up_period
 
unsigned long last_queue_ramp_up
 
unsigned int id
 
unsigned int lun
 
unsigned int channel
 
unsigned int manufacturer
 
unsigned sector_size
 
voidhostdata
 
char type
 
char scsi_level
 
char inq_periph_qual
 
unsigned char inquiry_len
 
unsigned charinquiry
 
const charvendor
 
const charmodel
 
const charrev
 
unsigned char current_tag
 
struct scsi_targetsdev_target
 
unsigned int sdev_bflags
 
unsigned writeable:1
 
unsigned removable:1
 
unsigned changed:1
 
unsigned busy:1
 
unsigned lockable:1
 
unsigned locked:1
 
unsigned borken:1
 
unsigned disconnect:1
 
unsigned soft_reset:1
 
unsigned sdtr:1
 
unsigned wdtr:1
 
unsigned ppr:1
 
unsigned tagged_supported:1
 
unsigned simple_tags:1
 
unsigned ordered_tags:1
 
unsigned was_reset:1
 
unsigned expecting_cc_ua:1
 
unsigned use_10_for_rw:1
 
unsigned use_10_for_ms:1
 
unsigned no_report_opcodes:1
 
unsigned no_write_same:1
 
unsigned skip_ms_page_8:1
 
unsigned skip_ms_page_3f:1
 
unsigned skip_vpd_pages:1
 
unsigned use_192_bytes_for_3f:1
 
unsigned no_start_on_add:1
 
unsigned allow_restart:1
 
unsigned manage_start_stop:1
 
unsigned start_stop_pwr_cond:1
 
unsigned no_uld_attach:1
 
unsigned select_no_atn:1
 
unsigned fix_capacity:1
 
unsigned guess_capacity:1
 
unsigned retry_hwerror:1
 
unsigned last_sector_bug:1
 
unsigned no_read_disc_info:1
 
unsigned no_read_capacity_16:1
 
unsigned try_rc_10_first:1
 
unsigned is_visible:1
 
unsigned can_power_off:1
 
unsigned wce_default_on:1
 
unsigned no_dif:1
 
struct list_head event_list
 
struct work_struct event_work
 
unsigned int device_blocked
 
unsigned int max_device_blocked
 
atomic_t iorequest_cnt
 
atomic_t iodone_cnt
 
atomic_t ioerr_cnt
 
struct device sdev_gendev sdev_dev
 
struct execute_work ew
 
struct work_struct requeue_work
 
struct scsi_dh_datascsi_dh_data
 
enum scsi_device_state sdev_state
 
unsigned long sdev_data [0]
 

Detailed Description

Definition at line 69 of file scsi_device.h.

Member Function Documentation

DECLARE_BITMAP ( supported_events  ,
SDEV_EVT_MAXBITS   
)

Field Documentation

unsigned allow_restart

Definition at line 145 of file scsi_device.h.

unsigned borken

Definition at line 122 of file scsi_device.h.

unsigned busy

Definition at line 119 of file scsi_device.h.

unsigned can_power_off

Definition at line 159 of file scsi_device.h.

unsigned changed

Definition at line 118 of file scsi_device.h.

unsigned int channel

Definition at line 94 of file scsi_device.h.

struct list_head cmd_list

Definition at line 81 of file scsi_device.h.

struct scsi_cmnd* current_cmnd

Definition at line 83 of file scsi_device.h.

unsigned char current_tag

Definition at line 109 of file scsi_device.h.

unsigned int device_blocked

Definition at line 167 of file scsi_device.h.

unsigned int device_busy

Definition at line 78 of file scsi_device.h.

unsigned disconnect

Definition at line 124 of file scsi_device.h.

Definition at line 164 of file scsi_device.h.

struct work_struct event_work

Definition at line 165 of file scsi_device.h.

Definition at line 179 of file scsi_device.h.

unsigned expecting_cc_ua

Definition at line 134 of file scsi_device.h.

unsigned fix_capacity

Definition at line 150 of file scsi_device.h.

unsigned guess_capacity

Definition at line 151 of file scsi_device.h.

Definition at line 70 of file scsi_device.h.

Definition at line 100 of file scsi_device.h.

unsigned int id

Definition at line 94 of file scsi_device.h.

char inq_periph_qual

Definition at line 103 of file scsi_device.h.

unsigned char* inquiry

Definition at line 105 of file scsi_device.h.

unsigned char inquiry_len

Definition at line 104 of file scsi_device.h.

atomic_t iodone_cnt

Definition at line 173 of file scsi_device.h.

atomic_t ioerr_cnt

Definition at line 174 of file scsi_device.h.

atomic_t iorequest_cnt

Definition at line 172 of file scsi_device.h.

unsigned is_visible

Definition at line 158 of file scsi_device.h.

unsigned short last_queue_full_count

Definition at line 87 of file scsi_device.h.

unsigned short last_queue_full_depth

Definition at line 86 of file scsi_device.h.

unsigned long last_queue_full_time

Definition at line 88 of file scsi_device.h.

unsigned long last_queue_ramp_up

Definition at line 92 of file scsi_device.h.

unsigned last_sector_bug

Definition at line 153 of file scsi_device.h.

spinlock_t list_lock

Definition at line 80 of file scsi_device.h.

unsigned lockable

Definition at line 120 of file scsi_device.h.

unsigned locked

Definition at line 121 of file scsi_device.h.

unsigned int lun

Definition at line 94 of file scsi_device.h.

unsigned manage_start_stop

Definition at line 146 of file scsi_device.h.

unsigned int manufacturer

Definition at line 96 of file scsi_device.h.

unsigned int max_device_blocked

Definition at line 169 of file scsi_device.h.

unsigned short max_queue_depth

Definition at line 85 of file scsi_device.h.

const char* model

Definition at line 107 of file scsi_device.h.

unsigned no_dif

Definition at line 161 of file scsi_device.h.

unsigned no_read_capacity_16

Definition at line 156 of file scsi_device.h.

unsigned no_read_disc_info

Definition at line 155 of file scsi_device.h.

unsigned no_report_opcodes

Definition at line 138 of file scsi_device.h.

unsigned no_start_on_add

Definition at line 144 of file scsi_device.h.

unsigned no_uld_attach

Definition at line 148 of file scsi_device.h.

unsigned no_write_same

Definition at line 139 of file scsi_device.h.

unsigned ordered_tags

Definition at line 131 of file scsi_device.h.

unsigned ppr

Definition at line 128 of file scsi_device.h.

unsigned short queue_depth

Definition at line 84 of file scsi_device.h.

unsigned long queue_ramp_up_period

Definition at line 89 of file scsi_device.h.

unsigned removable

Definition at line 117 of file scsi_device.h.

struct request_queue* request_queue

Definition at line 71 of file scsi_device.h.

struct work_struct requeue_work

Definition at line 180 of file scsi_device.h.

unsigned retry_hwerror

Definition at line 152 of file scsi_device.h.

const char* rev

Definition at line 108 of file scsi_device.h.

struct list_head same_target_siblings

Definition at line 75 of file scsi_device.h.

Definition at line 182 of file scsi_device.h.

char scsi_level

Definition at line 102 of file scsi_device.h.

unsigned int sdev_bflags

Definition at line 112 of file scsi_device.h.

unsigned long sdev_data[0]

Definition at line 184 of file scsi_device.h.

struct device sdev_gendev sdev_dev

Definition at line 176 of file scsi_device.h.

enum scsi_device_state sdev_state

Definition at line 183 of file scsi_device.h.

struct scsi_target* sdev_target

Definition at line 110 of file scsi_device.h.

unsigned sdtr

Definition at line 126 of file scsi_device.h.

unsigned sector_size

Definition at line 98 of file scsi_device.h.

unsigned select_no_atn

Definition at line 149 of file scsi_device.h.

struct list_head siblings

Definition at line 74 of file scsi_device.h.

unsigned simple_tags

Definition at line 130 of file scsi_device.h.

unsigned skip_ms_page_3f

Definition at line 141 of file scsi_device.h.

unsigned skip_ms_page_8

Definition at line 140 of file scsi_device.h.

unsigned skip_vpd_pages

Definition at line 142 of file scsi_device.h.

unsigned soft_reset

Definition at line 125 of file scsi_device.h.

unsigned start_stop_pwr_cond

Definition at line 147 of file scsi_device.h.

struct list_head starved_entry

Definition at line 82 of file scsi_device.h.

unsigned tagged_supported

Definition at line 129 of file scsi_device.h.

unsigned try_rc_10_first

Definition at line 157 of file scsi_device.h.

Definition at line 101 of file scsi_device.h.

unsigned use_10_for_ms

Definition at line 137 of file scsi_device.h.

unsigned use_10_for_rw

Definition at line 136 of file scsi_device.h.

unsigned use_192_bytes_for_3f

Definition at line 143 of file scsi_device.h.

Definition at line 106 of file scsi_device.h.

unsigned was_reset

Definition at line 132 of file scsi_device.h.

unsigned wce_default_on

Definition at line 160 of file scsi_device.h.

unsigned wdtr

Definition at line 127 of file scsi_device.h.

unsigned writeable

Definition at line 116 of file scsi_device.h.


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