drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.h- Extension
.h- Size
- 2077 bytes
- Lines
- 83
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct rvu_npa_event_ctxstruct rvu_npa_health_reportersstruct rvu_nix_event_ctxstruct rvu_nix_health_reportersstruct rvu_devlinkenum npa_af_rvu_healthenum nix_af_rvu_health
Annotated Snippet
struct rvu_npa_event_ctx {
u64 npa_af_rvu_int;
u64 npa_af_rvu_gen;
u64 npa_af_rvu_err;
u64 npa_af_rvu_ras;
};
struct rvu_npa_health_reporters {
struct rvu_npa_event_ctx *npa_event_ctx;
struct devlink_health_reporter *rvu_hw_npa_intr_reporter;
struct work_struct intr_work;
struct devlink_health_reporter *rvu_hw_npa_gen_reporter;
struct work_struct gen_work;
struct devlink_health_reporter *rvu_hw_npa_err_reporter;
struct work_struct err_work;
struct devlink_health_reporter *rvu_hw_npa_ras_reporter;
struct work_struct ras_work;
};
enum nix_af_rvu_health {
NIX_AF_RVU_INTR,
NIX_AF_RVU_GEN,
NIX_AF_RVU_ERR,
NIX_AF_RVU_RAS,
};
struct rvu_nix_event_ctx {
u64 nix_af_rvu_int;
u64 nix_af_rvu_gen;
u64 nix_af_rvu_err;
u64 nix_af_rvu_ras;
};
struct rvu_nix_health_reporters {
struct rvu_nix_event_ctx *nix_event_ctx;
struct devlink_health_reporter *rvu_hw_nix_intr_reporter;
struct work_struct intr_work;
struct devlink_health_reporter *rvu_hw_nix_gen_reporter;
struct work_struct gen_work;
struct devlink_health_reporter *rvu_hw_nix_err_reporter;
struct work_struct err_work;
struct devlink_health_reporter *rvu_hw_nix_ras_reporter;
struct work_struct ras_work;
};
struct rvu_devlink {
struct devlink *dl;
struct rvu *rvu;
struct workqueue_struct *devlink_wq;
struct rvu_npa_health_reporters *rvu_npa_health_reporter;
struct rvu_nix_health_reporters *rvu_nix_health_reporter;
};
/* Devlink APIs */
int rvu_register_dl(struct rvu *rvu);
void rvu_unregister_dl(struct rvu *rvu);
#endif /* RVU_DEVLINK_H */
Annotation
- Detected declarations: `struct rvu_npa_event_ctx`, `struct rvu_npa_health_reporters`, `struct rvu_nix_event_ctx`, `struct rvu_nix_health_reporters`, `struct rvu_devlink`, `enum npa_af_rvu_health`, `enum nix_af_rvu_health`.
- Atlas domain: Driver Families / drivers/net.
- 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.