drivers/scsi/fnic/fnic_stats.h
Source file repositories/reference/linux-study-clean/drivers/scsi/fnic/fnic_stats.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/fnic/fnic_stats.h- Extension
.h- Size
- 4797 bytes
- Lines
- 176
- Domain
- Driver Families
- Bucket
- drivers/scsi
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
scsi/scsi_transport_fc.h
Detected Declarations
struct stats_timestampsstruct io_path_statsstruct abort_statsstruct terminate_statsstruct reset_statsstruct fw_statsstruct vlan_statsstruct misc_statsstruct fnic_iport_statsstruct fnic_statsstruct stats_debug_info
Annotated Snippet
struct stats_timestamps {
struct timespec64 last_reset_time;
struct timespec64 last_read_time;
};
struct io_path_stats {
atomic64_t active_ios;
atomic64_t max_active_ios;
atomic64_t io_completions;
atomic64_t io_failures;
atomic64_t ioreq_null;
atomic64_t alloc_failures;
atomic64_t sc_null;
atomic64_t io_not_found;
atomic64_t num_ios;
atomic64_t io_btw_0_to_10_msec;
atomic64_t io_btw_10_to_100_msec;
atomic64_t io_btw_100_to_500_msec;
atomic64_t io_btw_500_to_5000_msec;
atomic64_t io_btw_5000_to_10000_msec;
atomic64_t io_btw_10000_to_30000_msec;
atomic64_t io_greater_than_30000_msec;
atomic64_t current_max_io_time;
atomic64_t ios[FNIC_MQ_MAX_QUEUES];
};
struct abort_stats {
atomic64_t aborts;
atomic64_t abort_failures;
atomic64_t abort_drv_timeouts;
atomic64_t abort_fw_timeouts;
atomic64_t abort_io_not_found;
atomic64_t abort_issued_btw_0_to_6_sec;
atomic64_t abort_issued_btw_6_to_20_sec;
atomic64_t abort_issued_btw_20_to_30_sec;
atomic64_t abort_issued_btw_30_to_40_sec;
atomic64_t abort_issued_btw_40_to_50_sec;
atomic64_t abort_issued_btw_50_to_60_sec;
atomic64_t abort_issued_greater_than_60_sec;
};
struct terminate_stats {
atomic64_t terminates;
atomic64_t max_terminates;
atomic64_t terminate_drv_timeouts;
atomic64_t terminate_fw_timeouts;
atomic64_t terminate_io_not_found;
atomic64_t terminate_failures;
};
struct reset_stats {
atomic64_t device_resets;
atomic64_t device_reset_failures;
atomic64_t device_reset_aborts;
atomic64_t device_reset_timeouts;
atomic64_t device_reset_terminates;
atomic64_t fw_resets;
atomic64_t fw_reset_completions;
atomic64_t fw_reset_failures;
atomic64_t fw_reset_timeouts;
atomic64_t fnic_resets;
atomic64_t fnic_reset_completions;
atomic64_t fnic_reset_failures;
};
struct fw_stats {
atomic64_t active_fw_reqs;
atomic64_t max_fw_reqs;
atomic64_t fw_out_of_resources;
atomic64_t io_fw_errs;
};
struct vlan_stats {
atomic64_t vlan_disc_reqs;
atomic64_t resp_withno_vlanID;
atomic64_t sol_expiry_count;
atomic64_t flogi_rejects;
};
struct misc_stats {
u64 last_isr_time;
u64 last_ack_time;
atomic64_t max_isr_jiffies;
atomic64_t max_isr_time_ms;
atomic64_t corr_work_done;
atomic64_t isr_count;
atomic64_t max_cq_entries;
atomic64_t ack_index_out_of_range;
atomic64_t data_count_mismatch;
atomic64_t fcpio_timeout;
Annotation
- Immediate include surface: `scsi/scsi_transport_fc.h`.
- Detected declarations: `struct stats_timestamps`, `struct io_path_stats`, `struct abort_stats`, `struct terminate_stats`, `struct reset_stats`, `struct fw_stats`, `struct vlan_stats`, `struct misc_stats`, `struct fnic_iport_stats`, `struct fnic_stats`.
- Atlas domain: Driver Families / drivers/scsi.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.