include/cxl/features.h
Source file repositories/reference/linux-study-clean/include/cxl/features.h
File Facts
- System
- Linux kernel
- Corpus path
include/cxl/features.h- Extension
.h- Size
- 2445 bytes
- Lines
- 89
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/uuid.hlinux/fwctl.huapi/cxl/features.h
Detected Declarations
struct cxl_features_statestruct cxl_feat_entriesstruct cxl_mailboxstruct cxl_memdevenum cxl_features_capabilityfunction devm_cxl_setup_featuresfunction devm_cxl_setup_fwctl
Annotated Snippet
struct cxl_features_state {
struct cxl_dev_state *cxlds;
struct cxl_feat_entries {
int num_features;
int num_user_features;
struct cxl_feat_entry ent[] __counted_by(num_features);
} *entries;
};
struct cxl_mailbox;
struct cxl_memdev;
#ifdef CONFIG_CXL_FEATURES
struct cxl_features_state *to_cxlfs(struct cxl_dev_state *cxlds);
int devm_cxl_setup_features(struct cxl_dev_state *cxlds);
int devm_cxl_setup_fwctl(struct device *host, struct cxl_memdev *cxlmd);
#else
static inline struct cxl_features_state *to_cxlfs(struct cxl_dev_state *cxlds)
{
return NULL;
}
static inline int devm_cxl_setup_features(struct cxl_dev_state *cxlds)
{
return -EOPNOTSUPP;
}
static inline int devm_cxl_setup_fwctl(struct device *host,
struct cxl_memdev *cxlmd)
{
return -EOPNOTSUPP;
}
#endif
#endif
Annotation
- Immediate include surface: `linux/uuid.h`, `linux/fwctl.h`, `uapi/cxl/features.h`.
- Detected declarations: `struct cxl_features_state`, `struct cxl_feat_entries`, `struct cxl_mailbox`, `struct cxl_memdev`, `enum cxl_features_capability`, `function devm_cxl_setup_features`, `function devm_cxl_setup_fwctl`.
- Atlas domain: Repository Root And Misc / include.
- 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.