rxrpc_kernel_recv_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ 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 to
  • call β€” 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 β€” true if more data is expected to be read
  • _abort β€” where the abort code is stored if -ECONNABORTED is 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: *_abort should also be initialised to 0. 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