rxrpc_kernel_recv_data(9)
π rxrpc_kernel_recv_data β NAME
okay bestie, welcome to rxrpc_kernel_recv_data β the one from the Kernel API Manual, section 9, and honestly? it's giving "let a kernel service receive data/info" and nothing less. π
β¨ SYNOPSIS β¨
int rxrpc_kernel_recv_data (struct socket *sock , struct rxrpc_call
*call , struct iov_iter *iter , size_t *_len , bool want_more , u32
*_abort , u16 *_service );
no cap, that's the whole signature β copy it exactly, don't get cute with it π
π«Ά ARGUMENTS π«Ά
sockβ the socket that the call exists on, like the friend group the call belongs tocallβ the call to send data through (yes, the field is called "send" but we're receiving, that's just how it is, don't come for me π)iterβ the buffer we're receiving into, i.e. where the data actually lands_lenβ the amount of data we want to receive, and heads up: it gets decreased on return (she shrinks, that's her job)want_moreβtrueif more data is expected to be read_abortβ where the abort code is stored if-ECONNABORTEDis returned_serviceβ where to store the actual service ID (it may be upgraded π)
πΈ DESCRIPTION πΈ
so this function lets a kernel service receive data and pick up info about the state of a call, which is honestly multitasking main character energy. β¨
little note bestie:*_abortshould also be initialised to0. don't skip this, it's not a vibe to skip it. π
also, and this is the part people forget: we may return -EAGAIN to drain empty packets at the end of the data, even if we've already copied over the requested data. literal "there's nothing left but I still need a sec" energy π
π₯ RETURN π₯
0β got what was asked for and there's more available π1β got what was asked for and we're at the end of the data π-EAGAINβ we need more data, hold please π§
π¦ SEE ALSO π¦
- Kernel file
./net/rxrpc/recvmsg.cβ go read it, iykyk π
and that's the page!! π this cutie lives under ./net/rxrpc, dated October 2026, and answers to the name rxrpc_kernel_recv_data(9) β periodt. ππΈ
π¦ 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