channel_detector_get(9)
π channel_detector_get(9) β the Kernel API Manual, bestie edition π
okay so real talk, this one lives in the Kernel API Manual and it's literally the function that gets you a channel detector for a given frequency. yes that's the whole vibe. let's get into it β¨
πΈ NAME πΈ
channel_detector_get β get the channel detector for a given frequency. that's it, that's the errand π«Ά
β¨ SYNOPSIS β¨
struct channel_detector * channel_detector_get (struct
dfs_pattern_detector *dpd , u16 freq );
look at her. iconic signature. no notes π₯
π¦ ARGUMENTS π¦
dpdβ the DPD instance pointer. like, your whole detector situation, handed over πfreqβfreqfrequency in MHz. yes they said freq twice, i don't make the rules, i just report them π
π DESCRIPTION π
Return value: pointer to a channel detector on success, NULL otherwise. periodt.
the way this works: you either get back the channel detector that already exists for the frequency you asked about, or you get a freshly created one. either way you win, bestie π
ngl, NULL is a valid answer here, so please actually check it before you go dereferencing like a main character with nothing to lose π
π SEE ALSO π
go touch some of these, iykyk:
- Kernel file
./drivers/net/wireless/ath/dfs_pattern_detector.c struct radar_types(9)get_dfs_domain_radar_types(9)struct channel_detector(9)
and that's the page!! fr fr you're basically an expert now π§ source shmol: ./drivers/net/wireless/ath, dated October 2026 β mwah, go slay some DFS π π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms