dprc_get_connection(9)
π dprc_get_connection β Kernel API Manual, section 9 π
okay so bestie, gather round, because this one is a whole little detective mission in the fsl-mc bus code. It's dprc_get_connection(9), and it lives in the Kernel API Manual β yes, section 9, the β¨realβ¨ section. Basically: you hand it one endpoint, and it tells you whether that endpoint is connected to something, and if so, who/what that something is, plus whether the link is actually up. iykyk π
πΈ NAME πΈ
dprc_get_connection β get the connected endpoint, and the link status, if a connection exists. That's the whole vibe check. π₯
β¨ SYNOPSIS β¨
int dprc_get_connection (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , const struct dprc_endpoint *endpoint1 , struct dprc_endpoint
*endpoint2 , int *state );
Like, yes, it's a lot of parameters, but we get through it together, one at a time. π«Ά
π¦ ARGUMENTS π¦
mc_ioβ Pointer to the MC portal's I/O object. This is your main character, the thing that actually talks to the management complex. πcmd_flagsβ Command flags; one or more ofMC_CMD_FLAG_. Pick your flags, bestie, they came to slay. βtokenβ The token of the DPRC object. It's the little ID that says "yes, this DPRC, not the other one." πendpoint1β Endpoint 1 configuration parameters. This is the one you bring to the function β it'sconst, so it's not going anywhere, no cap.endpoint2β Returned endpoint 2 configuration parameters. Notice the word Returned β this is where the function writes the other end of the connection back to you. πstateβ Returned link state, and it's a little three-way thing, so pay attention:1β link is up π0β link is down π-1β no connection at all, and heads up: in that case theendpoint2information is irrelevant, so don't go reading it and making it a whole thing π
π₯ RETURN π₯
(no return info listed here β that's just how the page is, bestie, we don't make stuff up π)
π SEE ALSO π
Kernel file ./drivers/bus/fsl-mc/dprc.c β go read the source, it's giving lore:
dprc_open(9)dprc_close(9)dprc_reset_container(9)dprc_set_irq(9)dprc_set_irq_enable(9)dprc_set_irq_mask(9)dprc_get_irq_status(9)dprc_clear_irq_status(9)dprc_get_attributes(9)dprc_get_obj_count(9)dprc_get_obj(9)dprc_set_obj_irq(9)dprc_get_obj_region(9)dprc_get_api_version(9)dprc_get_container_id(9)
honestly that's a whole friend group right there π§
and that's the page!! π source: ./drivers/bus/fsl-mc, dated October 2026, and the manual is dprc_get_connection(9) β mwah, go forth and check your connections, bestie ππ«Ά
π¦ 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