channel_detector_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” freq frequency 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:


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