drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/chelsio/cxgb4/clip_tbl.h- Extension
.h- Size
- 1353 bytes
- Lines
- 46
- Domain
- Driver Families
- Bucket
- drivers/net
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/refcount.h
Detected Declarations
struct clip_entrystruct clip_tbl
Annotated Snippet
struct clip_entry {
spinlock_t lock; /* Hold while modifying clip reference */
refcount_t refcnt;
struct list_head list;
union {
struct sockaddr_in addr;
struct sockaddr_in6 addr6;
};
};
struct clip_tbl {
unsigned int clipt_start;
unsigned int clipt_size;
rwlock_t lock;
atomic_t nfree;
struct list_head ce_free_head;
void *cl_list;
struct list_head hash_list[] __counted_by(clipt_size);
};
enum {
CLIPT_MIN_HASH_BUCKETS = 2,
};
struct clip_tbl *t4_init_clip_tbl(unsigned int clipt_start,
unsigned int clipt_end);
int cxgb4_clip_get(const struct net_device *dev, const u32 *lip, u8 v6);
void cxgb4_clip_release(const struct net_device *dev, const u32 *lip, u8 v6);
int clip_tbl_show(struct seq_file *seq, void *v);
int cxgb4_update_root_dev_clip(struct net_device *dev);
void t4_cleanup_clip_tbl(struct adapter *adap);
Annotation
- Immediate include surface: `linux/refcount.h`.
- Detected declarations: `struct clip_entry`, `struct clip_tbl`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.