drivers/net/wireless/ath/ath10k/p2p.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath10k/p2p.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath10k/p2p.c- Extension
.c- Size
- 3630 bytes
- Lines
- 146
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
core.hwmi.hmac.hp2p.h
Detected Declarations
struct ath10k_p2p_noa_argfunction Copyrightfunction ath10k_p2p_noa_ie_len_computefunction ath10k_p2p_noa_ie_assignfunction __ath10k_p2p_noa_updatefunction ath10k_p2p_noa_updatefunction ath10k_p2p_noa_update_vdev_iterfunction ath10k_p2p_noa_update_by_vdev_id
Annotated Snippet
struct ath10k_p2p_noa_arg {
u32 vdev_id;
const struct wmi_p2p_noa_info *noa;
};
static void ath10k_p2p_noa_update_vdev_iter(void *data, u8 *mac,
struct ieee80211_vif *vif)
{
struct ath10k_vif *arvif = (void *)vif->drv_priv;
struct ath10k_p2p_noa_arg *arg = data;
if (arvif->vdev_id != arg->vdev_id)
return;
ath10k_p2p_noa_update(arvif, arg->noa);
}
void ath10k_p2p_noa_update_by_vdev_id(struct ath10k *ar, u32 vdev_id,
const struct wmi_p2p_noa_info *noa)
{
struct ath10k_p2p_noa_arg arg = {
.vdev_id = vdev_id,
.noa = noa,
};
ieee80211_iterate_active_interfaces_atomic(ar->hw,
ATH10K_ITER_NORMAL_FLAGS,
ath10k_p2p_noa_update_vdev_iter,
&arg);
}
Annotation
- Immediate include surface: `core.h`, `wmi.h`, `mac.h`, `p2p.h`.
- Detected declarations: `struct ath10k_p2p_noa_arg`, `function Copyright`, `function ath10k_p2p_noa_ie_len_compute`, `function ath10k_p2p_noa_ie_assign`, `function __ath10k_p2p_noa_update`, `function ath10k_p2p_noa_update`, `function ath10k_p2p_noa_update_vdev_iter`, `function ath10k_p2p_noa_update_by_vdev_id`.
- 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.