rpmsg_trysendto(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 bestie
  • dst β€” 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 πŸ’–


🌈 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