sound/core/control_trace.h
Source file repositories/reference/linux-study-clean/sound/core/control_trace.h
File Facts
- System
- Linux kernel
- Corpus path
sound/core/control_trace.h- Extension
.h- Size
- 1555 bytes
- Lines
- 56
- Domain
- Driver Families
- Bucket
- sound/core
- 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
linux/tracepoint.huapi/sound/asound.htrace/define_trace.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#undef TRACE_SYSTEM
#define TRACE_SYSTEM snd_ctl
#if !defined(_TRACE_SND_CTL_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_SND_CTL_H
#include <linux/tracepoint.h>
#include <uapi/sound/asound.h>
TRACE_EVENT(snd_ctl_put,
TP_PROTO(struct snd_ctl_elem_id *id, const char *iname, unsigned int card,
int expected, int actual),
TP_ARGS(id, iname, card, expected, actual),
TP_STRUCT__entry(
__field(unsigned int, numid)
__string(iname, iname)
__string(kname, id->name)
__field(unsigned int, index)
__field(unsigned int, device)
__field(unsigned int, subdevice)
__field(unsigned int, card)
__field(int, expected)
__field(int, actual)
),
TP_fast_assign(
__entry->numid = id->numid;
__assign_str(iname);
__assign_str(kname);
__entry->index = id->index;
__entry->device = id->device;
__entry->subdevice = id->subdevice;
__entry->card = card;
__entry->expected = expected;
__entry->actual = actual;
),
TP_printk("%s: expected=%d, actual=%d for ctl numid=%d, iface=%s, name='%s', index=%d, device=%d, subdevice=%d, card=%d\n",
__entry->expected == __entry->actual ? "success" : "fail",
__entry->expected, __entry->actual, __entry->numid,
__get_str(iname), __get_str(kname), __entry->index,
__entry->device, __entry->subdevice, __entry->card)
);
#endif /* _TRACE_SND_CTL_H */
/* This part must be outside protection */
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .
#define TRACE_INCLUDE_FILE control_trace
#include <trace/define_trace.h>
Annotation
- Immediate include surface: `linux/tracepoint.h`, `uapi/sound/asound.h`, `trace/define_trace.h`.
- Atlas domain: Driver Families / sound/core.
- 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.