qman_affine_channel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ qman_affine_channel β€” the kernel API manual, bestie edition

okay so you're in the qman_affine_channel(9) page of the Kernel API Manual and honestly? it's a tiny one, but it's iconic. let's get into it πŸ’…


✨ NAME ✨

qman_affine_channel β€” returns the channel ID of a portal πŸŽ€

(and yes bestie, the original really does say "an portal". we don't fix it, we just notice it. lowkey charming.)


πŸ¦‹ SYNOPSIS πŸ¦‹

u16 qman_affine_channel (int cpu );

🌸 ARGUMENTS 🌸

  • cpu β€” the cpu whose affine portal is the subject of the query ✨

πŸ’– DESCRIPTION πŸ’–

here's the tea πŸ“ β€” if cpu is -1, then the affine portal for the current CPU gets used. slay, convenient.

⚠️ but listen: it is a bug to call this function for any value of cpu (other than -1) that is not a member of the mask returned from qman_affine_cpus. not "kinda sketchy", not "vibes off" β€” an actual bug. fr fr. so do your vibe check against that mask first, or you're gonna have a bad time 😭

πŸ”₯ SEE ALSO πŸ”₯

and now, the main character energy section. the kernel file to look at is ./include/soc/fsl/qman.h, and here is the whole squad 🫢:

every single one, no skips, we ate that list πŸ’€βœ¨


🌈 closing vibes 🌈

this slay little page comes from ./include/soc/fsl and it's dated October 2026 β€” so go forth, query your affine portals responsibly, and remember: -1 is your bestie, everything else needs to be in that mask. periodt πŸ’œπŸŽ€

byeee, ily, go read qman_affine_cpus(9) next 🧚

πŸ“¦ where this page comes from