rpmsg_trysendto(9)
π rpmsg_trysendto(9) β like, the kernel API manual bestie β¨
okay so this is a page from the Kernel API Manual, and we're talking about rpmsg_trysendto(9). yes the (9) is the section number, that's just how kernel pages roll, iykyk π
πΈ NAME πΈ
rpmsg_trysendto β send a message across to the remote processor, and yeah, you get to specify the dst too π«Ά
β¨ SYNOPSIS β¨
int rpmsg_trysendto (struct rpmsg_endpoint *ept , const void *data , int
len , u32 dst );
like literally that's the whole signature, no cap π«
π¦ ARGUMENTS π¦
eptβ the rpmsg endpoint, your main character struct πdataβ the payload of the message, aka the actual vibes you're shipping π¦lenβ length of that payload, gotta know how much you're sending bestiedstβ destination address, where it's headed π―
π₯ DESCRIPTION π₯
so this function sends data of length len to the remote dst address. the message goes to the remote processor that the ept endpoint belongs to, and it uses ept's address as the source. that's it, that's the whole glow-up β¨
now here's the part where you pay attention π β if there are no TX buffers available, this function will immediately return -ENOMEM without waiting until one becomes available. like it does not wait, it does not queue up, it does not hold your spot, it just says nope and bounces π that's the entire point of the try in the name, she's not patient, she's booked and busy.
lowkey important: it can only be called from process context (for now). that "(for now)" is doing a lot of heavy lifting, but we don't make the rules π§
β RETURN β
0 on success, and an appropriate error value on failure. simple as that, slay π₯
π SEE ALSO π
kernel file ./drivers/rpmsg/rpmsg_core.c, plus the whole friend group π
rpmsg_create_channel(9)rpmsg_release_channel(9)rpmsg_create_ept(9)rpmsg_destroy_ept(9)rpmsg_send(9)rpmsg_sendto(9)rpmsg_trysend(9)rpmsg_poll(9)rpmsg_set_flow_control(9)rpmsg_get_mtu(9)__register_rpmsg_driver(9)unregister_rpmsg_driver(9)
π and that's the whole page bestie!! this one lives in ./drivers/rpmsg and it's dated October 2026, so like, future energy fr fr. go send some messages, stay in process context, and remember: if there's no TX buffer, she will not wait for you. 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