drivers/scsi/iscsi_tcp.h
Source file repositories/reference/linux-study-clean/drivers/scsi/iscsi_tcp.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/iscsi_tcp.h- Extension
.h- Size
- 1528 bytes
- Lines
- 63
- 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/libiscsi.hscsi/libiscsi_tcp.h
Detected Declarations
struct socketstruct iscsi_tcp_connstruct iscsi_sw_tcp_sendstruct iscsi_sw_tcp_connstruct iscsi_sw_tcp_hoststruct iscsi_sw_tcp_hdrbuf
Annotated Snippet
struct iscsi_sw_tcp_send {
struct iscsi_hdr *hdr;
struct iscsi_segment segment;
struct iscsi_segment data_segment;
};
struct iscsi_sw_tcp_conn {
struct socket *sock;
/* Taken when accessing the sock from the netlink/sysfs interface */
struct mutex sock_lock;
struct work_struct recvwork;
bool queue_recv;
struct iscsi_sw_tcp_send out;
/* old values for socket callbacks */
void (*old_data_ready)(struct sock *);
void (*old_state_change)(struct sock *);
void (*old_write_space)(struct sock *);
/* data and header digests */
u32 tx_crc; /* CRC32C (Tx) */
u32 rx_crc; /* CRC32C (Rx) */
/* MIB custom statistics */
uint32_t sendpage_failures_cnt;
uint32_t discontiguous_hdr_cnt;
};
struct iscsi_sw_tcp_host {
struct iscsi_session *session;
};
struct iscsi_sw_tcp_hdrbuf {
struct iscsi_hdr hdrbuf;
char hdrextbuf[ISCSI_MAX_AHS_SIZE +
ISCSI_DIGEST_SIZE];
};
#endif /* ISCSI_SW_TCP_H */
Annotation
- Immediate include surface: `scsi/libiscsi.h`, `scsi/libiscsi_tcp.h`.
- Detected declarations: `struct socket`, `struct iscsi_tcp_conn`, `struct iscsi_sw_tcp_send`, `struct iscsi_sw_tcp_conn`, `struct iscsi_sw_tcp_host`, `struct iscsi_sw_tcp_hdrbuf`.
- 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.