svc_udp_sendto(9)
π svc_udp_sendto β the kernel API manual, bestie edition β¨
okay so you're looking at svc_udp_sendto(9), a page from the Kernel API Manual, and honestly? it's short, it's sweet, and it does exactly one thing. let's get into it π«Ά
πΈ NAME πΈ
svc_udp_sendto β literally just send out a reply on a UDP socket π
β¨ SYNOPSIS β¨
int svc_udp_sendto (struct svc_rqst *rqstp );
that's it. one function, one argument, iconic behavior π
π¦ ARGUMENTS π¦
rqstpβ a completedsvc_rqst. like, it's done, it's finished, it's ready to go out into the world. no half-baked requests here, bestie β
π DESCRIPTION π
so the way this works: xpt_mutex is the main character here π₯ it makes sure that rqstp's whole message gets written to the socket without interruption. no cutting in, no splicing, no drama β the entire message lands as one unit, periodt.
and what does it give you back? the number of bytes sent π« or, if things went sideways, a negative errno. that's the vibe check you get on return, ngl.
π SEE ALSO π
these are the besties in the group chat, all hanging out in the Kernel file ./net/sunrpc/svcsock.c:
svc_tcp_release_ctxt(9)svc_udp_release_ctxt(9)svc_tcp_handshake_done(9)svc_tcp_handshake(9)svc_udp_recvfrom(9)svc_tcp_recvfrom(9)svc_tcp_sendto(9)svc_addsock(9)
ngl this page is short but it ate. send your whole message, get your bytes back, keep your errno in check. slay π
and that's a wrap, babe π§ this one came to you from ./net/sunrpc, dated October 2026, and it's filed under svc_udp_sendto(9) β go be great, and may all your sockets be uninterrupted π
π¦ 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