efx_siena_mcdi_rpc(9)
β¨ efx_siena_mcdi_rpc(9) β¨
okay so this is a page from the Kernel API Manual bestie, and it's literally about efx_siena_mcdi_rpc β issuing an MCDI command and waiting for it to finish. yes, waiting. it's giving "I'll text you back when I'm done" energy π
πΈ NAME πΈ
efx_siena_mcdi_rpc β issue an MCDI command and then justβ¦ wait for completion π«Ά
π SYNOPSIS π
int efx_siena_mcdi_rpc (struct efx_nic *efx , unsigned int cmd , const
efx_dword_t *inbuf , size_t inlen , efx_dword_t *outbuf , size_t outlen
, size_t *outlen_actual );
like, look at all those arguments. she's high maintenance but she's worth it π
π¦ ARGUMENTS π¦
efxβ the NIC you're sending the command through. main character of this whole operation β¨cmdβ the command type number. just a lil number that says what you want πinbufβ command parameters go here. that's the tea you're sending πinlenβ length of the command parameters in bytes. must be a multiple of4and no greater thanMCDI_CTL_SDU_LEN_MAX_V1. no cap, those are the rules π€outbufβ the response buffer. may beNULLifoutlenis0. slay, optional queen πoutlenβ length of the response buffer, in bytes. if the actual response is longer thanoutlen & ~3, it gets truncated to that length. yes it will just chop it, don't come for her πoutlen_actualβ pointer through which the actual response length gets returned. may beNULLif you literally don't need it π
π DESCRIPTION π
this function may sleep, so bestie you gotta call it in an appropriate context. not me warning you about context β it's important, iykyk π
π₯ RETURN π₯
so it returns a negative error code, or zero if it's all good β¨
and like, the error code can come from two places:
- the MCDI response β in which case the response will still be copied to
outbufand*outlen_actualwill be set accordingly π«Ά - a failure to communicate with the MC β in which case
*outlen_actualwill be set to zero. gone. zeroed. nothing there π
β SEE ALSO β
- Kernel file
./drivers/net/ethernet/sfc/siena/mcdi.c efx_siena_mcdi_rpc_async(9)β the not-waiting version, go read it too π§
and that's the whole vibe, bestie π this icon lives in ./drivers/net/ethernet/sfc/siena, dated October 2026 β see you in the kernel source, mwah π
π¦ 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