qbman_swp_CDAN_set_context(9)
π qbman_swp_CDAN_set_context β a kernel API manual moment
okay so bestie, welcome to the Kernel API Manual page for qbman_swp_CDAN_set_context(9) β yes that's the whole title and yes we're saying it with our chest. It lives in the DPIO / QBMan portal corner of the kernel and it's lowkey one of those tiny glue functions that just works. β¨
β¨ NAME β¨
qbman_swp_CDAN_set_context β Set CDAN context π that's it, that's the job.
πΈ SYNOPSIS πΈ
int qbman_swp_CDAN_set_context (struct qbman_swp *s , u16 channelid ,
u64 ctx );
So you call it, you hand it a portal, a channel index, and a context value, and it goes and does the thing. Slay. π
π¦ ARGUMENTS π¦
sβ the software portal object, aka your main character pointer. It's thestruct qbman_swp *you already have kicking around.channelidβ the channel index, au16. Iconic little number, tells us which channel we're talking about.ctxβ the context to be set in CDAN, au64. This is literally just the value you're shoving in there.
π DESCRIPTION π
Not me writing the shortest description ever, but fr fr: it returns 0 for success, or a negative error code for failure. That's the whole vibe check β no extra lore, no secret options, no hidden defaults. If you get 0 back, we're slaying; if it's negative, something's giving error energy and you should handle it. π
ngl there are zero extra params here β no env vars, no file paths, no signals. Just the return value. Periodt. π«Ά
π SEE ALSO π
Kernel file ./drivers/soc/fsl/dpio/qbman-portal.h β go read it, it's giving source of truth energy π
And then the whole bestie lineup, all of them, in order:
qbman_swp_enqueue(9)qbman_swp_enqueue_multiple(9)qbman_swp_enqueue_multiple_desc(9)qbman_result_is_DQ(9)qbman_result_is_SCN(9)qbman_result_SCN_state(9)qbman_result_SCN_rid(9)qbman_result_SCN_ctx(9)qbman_swp_fq_schedule(9)qbman_swp_fq_force(9)qbman_swp_fq_xon(9)qbman_swp_fq_xoff(9)qbman_swp_CDAN_enable(9)qbman_swp_CDAN_disable(9)qbman_swp_CDAN_set_context_enable(9)qbman_swp_release(9)qbman_swp_pull(9)qbman_swp_dqrr_next(9)
okay bestie, cute little sign-off time π this page hangs out under ./drivers/soc/fsl/dpio, it's dated October 2026, and it's from the Kernel API Manual β that's the whole vibe. Now go set that context and slay the queue ππ¦β¨
π¦ 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