drivers/net/wireless/silabs/wfx/traces.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/silabs/wfx/traces.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/silabs/wfx/traces.h- Extension
.h- Size
- 16342 bytes
- Lines
- 497
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/tracepoint.hnet/mac80211.hbus.hhif_api_cmd.hhif_api_mib.htrace/define_trace.h
Detected Declarations
function xxx_name
Annotated Snippet
while ((wvif = wvif_iterate(wdev, wvif)) != NULL) {
for (i = 0; i < IEEE80211_NUM_ACS; i++) {
j = wvif->id * IEEE80211_NUM_ACS + i;
WARN_ON(j >= IEEE80211_NUM_ACS * 2);
queue = &wvif->tx_queue[i];
__entry->hw[j] = atomic_read(&queue->pending_frames);
__entry->drv[j] = skb_queue_len(&queue->normal);
__entry->cab[j] = skb_queue_len(&queue->cab);
if (queue == elected_queue) {
__entry->vif_id = wvif->id;
__entry->queue_id = i;
}
}
}
),
TP_printk("got skb from %d/%d, pend. hw/norm/cab: [ %d/%d/%d %d/%d/%d %d/%d/%d %d/%d/%d ] [ %d/%d/%d %d/%d/%d %d/%d/%d %d/%d/%d ]",
__entry->vif_id, __entry->queue_id,
__entry->hw[0], __entry->drv[0], __entry->cab[0],
__entry->hw[1], __entry->drv[1], __entry->cab[1],
__entry->hw[2], __entry->drv[2], __entry->cab[2],
__entry->hw[3], __entry->drv[3], __entry->cab[3],
__entry->hw[4], __entry->drv[4], __entry->cab[4],
__entry->hw[5], __entry->drv[5], __entry->cab[5],
__entry->hw[6], __entry->drv[6], __entry->cab[6],
__entry->hw[7], __entry->drv[7], __entry->cab[7]
)
);
#endif
/* This part must be outside protection */
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE traces
#include <trace/define_trace.h>
Annotation
- Immediate include surface: `linux/tracepoint.h`, `net/mac80211.h`, `bus.h`, `hif_api_cmd.h`, `hif_api_mib.h`, `trace/define_trace.h`.
- Detected declarations: `function xxx_name`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.