linux-2.6.25/scsi_device
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#w2f3a02b]
#backlinks
*説明 [#s046159a]
-パス: [[linux-2.6.25/include/scsi/scsi_device.h]]
-FIXME: これは何?
--説明
**参考 [#n85debc9]
*実装 [#zbda078b]
struct scsi_device {
struct Scsi_Host *host;
-
--[[linux-2.6.25/Scsi_Host]]
struct request_queue *request_queue;
-
--[[linux-2.6.25/request_queue]]
/* the next two are protected by the host->host_...
struct list_head siblings; /* list of all d...
struct list_head same_target_siblings; /* jus...
-
--[[linux-2.6.25/list_head]]
/* this is now protected by the request_queue->q...
unsigned int device_busy; /* commands actu...
* low-level. pr...
spinlock_t list_lock;
-
--[[linux-2.6.25/spinlock_t]]
struct list_head cmd_list; /* queue of in u...
struct list_head starved_entry;
struct scsi_cmnd *current_cmnd; /* currently act...
-
--[[linux-2.6.25/scsi_cmnd]]
unsigned short queue_depth; /* How deep of a...
unsigned short last_queue_full_depth; /* These t...
unsigned short last_queue_full_count; /* scsi_tr...
unsigned long last_queue_full_time;/* don't let ...
jiffie count ...
could all be ...
unsigned int id, lun, channel;
unsigned int manufacturer; /* Manufacturer ...
* vendor-specif...
unsigned sector_size; /* size in bytes */
void *hostdata; /* available to low-leve...
char type;
char scsi_level;
char inq_periph_qual; /* PQ from INQUIRY data */
unsigned char inquiry_len; /* valid bytes i...
unsigned char * inquiry; /* INQUIRY respo...
const char * vendor; /* [back_compat]...
const char * model; /* ... after sca...
const char * rev; /* ... "nullnull...
unsigned char current_tag; /* current tag */
struct scsi_target *sdev_target; /* used ...
-
--[[linux-2.6.25/scsi_target]]
unsigned int sdev_bflags; /* black/white flag...
* scsi_devinfo.[hc]. Fo...
* pass settings from sl...
* core. */
unsigned writeable:1;
unsigned removable:1;
unsigned changed:1; /* Data invalid due to m...
unsigned busy:1; /* Used to prevent races...
unsigned lockable:1; /* Able to prevent media...
unsigned locked:1; /* Media removal disable...
unsigned borken:1; /* Tell the Seagate driv...
* painfully slow on thi...
unsigned disconnect:1; /* can disconnect */
unsigned soft_reset:1; /* Uses soft reset optio...
unsigned sdtr:1; /* Device supports SDTR ...
unsigned wdtr:1; /* Device supports WDTR ...
unsigned ppr:1; /* Device supports PPR m...
unsigned tagged_supported:1; /* Supports SCSI...
unsigned simple_tags:1; /* simple queue tag mess...
unsigned ordered_tags:1;/* ordered queue tag mes...
unsigned was_reset:1; /* There was a bus reset...
* this device */
unsigned expecting_cc_ua:1; /* Expecting a CHECK...
* because we did a ...
unsigned use_10_for_rw:1; /* first try 10-byte r...
unsigned use_10_for_ms:1; /* first try 10-byte m...
unsigned skip_ms_page_8:1; /* do not use MO...
unsigned skip_ms_page_3f:1; /* do not use MO...
unsigned use_192_bytes_for_3f:1; /* ask for 192 ...
unsigned no_start_on_add:1; /* do not issue ...
unsigned allow_restart:1; /* issue START_UNIT in...
unsigned manage_start_stop:1; /* Let HLD (sd) ...
unsigned no_uld_attach:1; /* disable connecting ...
unsigned select_no_atn:1;
unsigned fix_capacity:1; /* READ_CAPACITY...
unsigned guess_capacity:1; /* READ_CAPACITY...
unsigned retry_hwerror:1; /* Retry HARDWAR...
unsigned last_sector_bug:1; /* Always read l...
DECLARE_BITMAP(supported_events, SDEV_EVT_MAXBIT...
-
--[[linux-2.6.25/DECLARE_BITMAP]]
struct list_head event_list; /* asserted even...
struct work_struct event_work;
-
--[[linux-2.6.25/work_struct]]
unsigned int device_blocked; /* Device return...
unsigned int max_device_blocked; /* what device_...
#define SCSI_DEFAULT_DEVICE_BLOCKED 3
atomic_t iorequest_cnt;
atomic_t iodone_cnt;
atomic_t ioerr_cnt;
-
--[[linux-2.6.25/atomic_t]]
int timeout;
struct device sdev_gendev;
-
--[[linux-2.6.25/device]]
struct class_device sdev_classdev;
-
--[[linux-2.6.25/class_device]]
struct execute_work ew; /* used to get proce...
-
--[[linux-2.6.25/execute_work]]
enum scsi_device_state sdev_state;
-
--[[linux-2.6.25/scsi_device_state]]
unsigned long sdev_data[0];
} __attribute__((aligned(sizeof(unsigned long))));
*コメント [#y4405a29]
終了行:
*参照元 [#w2f3a02b]
#backlinks
*説明 [#s046159a]
-パス: [[linux-2.6.25/include/scsi/scsi_device.h]]
-FIXME: これは何?
--説明
**参考 [#n85debc9]
*実装 [#zbda078b]
struct scsi_device {
struct Scsi_Host *host;
-
--[[linux-2.6.25/Scsi_Host]]
struct request_queue *request_queue;
-
--[[linux-2.6.25/request_queue]]
/* the next two are protected by the host->host_...
struct list_head siblings; /* list of all d...
struct list_head same_target_siblings; /* jus...
-
--[[linux-2.6.25/list_head]]
/* this is now protected by the request_queue->q...
unsigned int device_busy; /* commands actu...
* low-level. pr...
spinlock_t list_lock;
-
--[[linux-2.6.25/spinlock_t]]
struct list_head cmd_list; /* queue of in u...
struct list_head starved_entry;
struct scsi_cmnd *current_cmnd; /* currently act...
-
--[[linux-2.6.25/scsi_cmnd]]
unsigned short queue_depth; /* How deep of a...
unsigned short last_queue_full_depth; /* These t...
unsigned short last_queue_full_count; /* scsi_tr...
unsigned long last_queue_full_time;/* don't let ...
jiffie count ...
could all be ...
unsigned int id, lun, channel;
unsigned int manufacturer; /* Manufacturer ...
* vendor-specif...
unsigned sector_size; /* size in bytes */
void *hostdata; /* available to low-leve...
char type;
char scsi_level;
char inq_periph_qual; /* PQ from INQUIRY data */
unsigned char inquiry_len; /* valid bytes i...
unsigned char * inquiry; /* INQUIRY respo...
const char * vendor; /* [back_compat]...
const char * model; /* ... after sca...
const char * rev; /* ... "nullnull...
unsigned char current_tag; /* current tag */
struct scsi_target *sdev_target; /* used ...
-
--[[linux-2.6.25/scsi_target]]
unsigned int sdev_bflags; /* black/white flag...
* scsi_devinfo.[hc]. Fo...
* pass settings from sl...
* core. */
unsigned writeable:1;
unsigned removable:1;
unsigned changed:1; /* Data invalid due to m...
unsigned busy:1; /* Used to prevent races...
unsigned lockable:1; /* Able to prevent media...
unsigned locked:1; /* Media removal disable...
unsigned borken:1; /* Tell the Seagate driv...
* painfully slow on thi...
unsigned disconnect:1; /* can disconnect */
unsigned soft_reset:1; /* Uses soft reset optio...
unsigned sdtr:1; /* Device supports SDTR ...
unsigned wdtr:1; /* Device supports WDTR ...
unsigned ppr:1; /* Device supports PPR m...
unsigned tagged_supported:1; /* Supports SCSI...
unsigned simple_tags:1; /* simple queue tag mess...
unsigned ordered_tags:1;/* ordered queue tag mes...
unsigned was_reset:1; /* There was a bus reset...
* this device */
unsigned expecting_cc_ua:1; /* Expecting a CHECK...
* because we did a ...
unsigned use_10_for_rw:1; /* first try 10-byte r...
unsigned use_10_for_ms:1; /* first try 10-byte m...
unsigned skip_ms_page_8:1; /* do not use MO...
unsigned skip_ms_page_3f:1; /* do not use MO...
unsigned use_192_bytes_for_3f:1; /* ask for 192 ...
unsigned no_start_on_add:1; /* do not issue ...
unsigned allow_restart:1; /* issue START_UNIT in...
unsigned manage_start_stop:1; /* Let HLD (sd) ...
unsigned no_uld_attach:1; /* disable connecting ...
unsigned select_no_atn:1;
unsigned fix_capacity:1; /* READ_CAPACITY...
unsigned guess_capacity:1; /* READ_CAPACITY...
unsigned retry_hwerror:1; /* Retry HARDWAR...
unsigned last_sector_bug:1; /* Always read l...
DECLARE_BITMAP(supported_events, SDEV_EVT_MAXBIT...
-
--[[linux-2.6.25/DECLARE_BITMAP]]
struct list_head event_list; /* asserted even...
struct work_struct event_work;
-
--[[linux-2.6.25/work_struct]]
unsigned int device_blocked; /* Device return...
unsigned int max_device_blocked; /* what device_...
#define SCSI_DEFAULT_DEVICE_BLOCKED 3
atomic_t iorequest_cnt;
atomic_t iodone_cnt;
atomic_t ioerr_cnt;
-
--[[linux-2.6.25/atomic_t]]
int timeout;
struct device sdev_gendev;
-
--[[linux-2.6.25/device]]
struct class_device sdev_classdev;
-
--[[linux-2.6.25/class_device]]
struct execute_work ew; /* used to get proce...
-
--[[linux-2.6.25/execute_work]]
enum scsi_device_state sdev_state;
-
--[[linux-2.6.25/scsi_device_state]]
unsigned long sdev_data[0];
} __attribute__((aligned(sizeof(unsigned long))));
*コメント [#y4405a29]
ページ名: