sound/soc/sof/sof-client-probes.h
Source file repositories/reference/linux-study-clean/sound/soc/sof/sof-client-probes.h
File Facts
- System
- Linux kernel
- Corpus path
sound/soc/sof/sof-client-probes.h- Extension
.h- Size
- 2259 bytes
- Lines
- 73
- Domain
- Driver Families
- Bucket
- sound/soc
- 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 snd_compr_streamstruct snd_compr_tstamp64struct snd_compr_paramsstruct sof_client_devstruct snd_soc_daistruct sof_probes_host_opsstruct sof_probe_point_descstruct sof_probes_ipc_opsstruct sof_probes_privenum sof_probe_info_type
Annotated Snippet
struct sof_probes_host_ops {
int (*startup)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
struct snd_soc_dai *dai, u32 *stream_id);
int (*shutdown)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
struct snd_soc_dai *dai);
int (*set_params)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
struct snd_compr_params *params,
struct snd_soc_dai *dai);
int (*trigger)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
int cmd, struct snd_soc_dai *dai);
int (*pointer)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
struct snd_compr_tstamp64 *tstamp,
struct snd_soc_dai *dai);
};
struct sof_probe_point_desc {
unsigned int buffer_id;
unsigned int purpose;
unsigned int stream_tag;
} __packed;
enum sof_probe_info_type {
PROBES_INFO_ACTIVE_PROBES,
PROBES_INFO_AVAILABE_PROBES,
};
struct sof_probes_ipc_ops {
int (*init)(struct sof_client_dev *cdev, u32 stream_tag,
size_t buffer_size);
int (*deinit)(struct sof_client_dev *cdev);
int (*points_info)(struct sof_client_dev *cdev,
struct sof_probe_point_desc **desc,
size_t *num_desc, enum sof_probe_info_type type);
int (*point_print)(struct sof_client_dev *cdev, char *buf, size_t size,
struct sof_probe_point_desc *desc);
int (*points_add)(struct sof_client_dev *cdev,
struct sof_probe_point_desc *desc,
size_t num_desc);
int (*points_remove)(struct sof_client_dev *cdev,
unsigned int *buffer_id, size_t num_buffer_id);
};
extern const struct sof_probes_ipc_ops ipc3_probe_ops;
extern const struct sof_probes_ipc_ops ipc4_probe_ops;
struct sof_probes_priv {
struct dentry *dfs_points;
struct dentry *dfs_points_remove;
u32 extractor_stream_tag;
struct snd_soc_card card;
void *ipc_priv;
const struct sof_probes_host_ops *host_ops;
const struct sof_probes_ipc_ops *ipc_ops;
};
#endif
Annotation
- Detected declarations: `struct snd_compr_stream`, `struct snd_compr_tstamp64`, `struct snd_compr_params`, `struct sof_client_dev`, `struct snd_soc_dai`, `struct sof_probes_host_ops`, `struct sof_probe_point_desc`, `struct sof_probes_ipc_ops`, `struct sof_probes_priv`, `enum sof_probe_info_type`.
- Atlas domain: Driver Families / sound/soc.
- 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.