qman_affine_channel(9)
π 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 ofcpu(other than-1) that is not a member of the mask returned fromqman_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 π«Ά:
qman_p_irqsource_add(9)qman_p_irqsource_remove(9)qman_affine_cpus(9)qman_get_affine_portal(9)qman_start_using_portal(9)qman_p_poll_dqrr(9)qman_p_static_dequeue_add(9)qman_create_fq(9)qman_destroy_fq(9)qman_fq_fqid(9)qman_init_fq(9)qman_schedule_fq(9)qman_retire_fq(9)qman_oos_fq(9)qman_enqueue(9)qman_alloc_fqid_range(9)qman_release_fqid(9)qman_query_fq_np(9)qman_alloc_pool_range(9)qman_release_pool(9)qman_create_cgr(9)qman_delete_cgr(9)qman_delete_cgr_safe(9)qman_update_cgr_safe(9)qman_query_cgr_congested(9)qman_alloc_cgrid_range(9)qman_release_cgrid(9)qman_is_probed(9)qman_portals_probed(9)qman_dqrr_get_ithresh(9)qman_dqrr_set_ithresh(9)
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
- 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