drivers/net/dsa/realtek/realtek-smi.h
Source file repositories/reference/linux-study-clean/drivers/net/dsa/realtek/realtek-smi.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/dsa/realtek/realtek-smi.h- Extension
.h- Size
- 1078 bytes
- Lines
- 49
- 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
function realtek_smi_driver_registerfunction realtek_smi_driver_unregisterfunction realtek_smi_driver_registerfunction realtek_smi_driver_unregisterfunction realtek_smi_remove
Annotated Snippet
#ifndef _REALTEK_SMI_H
#define _REALTEK_SMI_H
#if IS_ENABLED(CONFIG_NET_DSA_REALTEK_SMI)
static inline int realtek_smi_driver_register(struct platform_driver *drv)
{
return platform_driver_register(drv);
}
static inline void realtek_smi_driver_unregister(struct platform_driver *drv)
{
platform_driver_unregister(drv);
}
int realtek_smi_probe(struct platform_device *pdev);
void realtek_smi_remove(struct platform_device *pdev);
void realtek_smi_shutdown(struct platform_device *pdev);
#else /* IS_ENABLED(CONFIG_NET_DSA_REALTEK_SMI) */
static inline int realtek_smi_driver_register(struct platform_driver *drv)
{
return 0;
}
static inline void realtek_smi_driver_unregister(struct platform_driver *drv)
{
}
static inline int realtek_smi_probe(struct platform_device *pdev)
{
return -ENOENT;
}
static inline void realtek_smi_remove(struct platform_device *pdev)
{
}
static inline void realtek_smi_shutdown(struct platform_device *pdev)
{
}
#endif /* IS_ENABLED(CONFIG_NET_DSA_REALTEK_SMI) */
#endif /* _REALTEK_SMI_H */
Annotation
- Detected declarations: `function realtek_smi_driver_register`, `function realtek_smi_driver_unregister`, `function realtek_smi_driver_register`, `function realtek_smi_driver_unregister`, `function realtek_smi_remove`.
- 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.