__rpmsg_destroy_ept(9)
π
__rpmsg_destroy_ept (9) β like, the kernel API manual, but make it make sense β¨
okay so bestie, you've stumbled into section 9 of the kernel API manual β that's the "functions the kernel devs use" zone, not your regular "type man ls" zone. and today's main character is __rpmsg_destroy_ept, which (spoiler) destroys an rpmsg endpoint. the double underscore at the front is giving "internal, don't touch unless you know what you're doing" energy, and honestly? respect. π
πΈ NAME πΈ
__rpmsg_destroy_ept β destroy an existing rpmsg endpoint. that's it. that's the whole name. it destroys an ept. periodt. π
π¦ SYNOPSIS π¦
void __rpmsg_destroy_ept (struct virtproc_info *vrp , struct rpmsg_endpoint *ept );
returns void, so likeβ¦ it gives you nothing back. no status, no error code, no little note. it just does the thing and dips. iconic behaviour tbh. π
β ARGUMENTS β
vrpβ the virtproc that owns thisept. think of it as the parent, the one holding the leash. π«Άeptβ the endpoing to destroy. (yes, "endpoing" β that's the original spelling, and honestly it's kind of a vibe, we're keeping it. ππ)
π₯ DESCRIPTION π₯
so here's the tea β β this is an internal function which destroys an ept without assuming it is bound to an rpmsg channel.
read that again, because it matters: it does not assume the ept has a channel attached. that's the whole reason it exists as a separate thing from the regular destroy path.
and why do we need a destroy that doesn't assume a channel binding? because of the internal name service endpoint, which β plot twist β isn't bound to an rpmsg channel. so the normal path can't help it. this one can. π§
also go look at __rpmsg_create_ept β you know, the one that made the ept in the first place. the origin story. the prequel. β¨
ngl, if you're calling this from driver code and you're not living inside the rpmsg core, maybe do a little vibe check on your life choices first. it's internal for a reason, bestie. π
π SEE ALSO π
- Kernel file
./drivers/rpmsg/virtio_rpmsg_bus.cβ the actual source, go read it, it's lowkey good for you π struct virtproc_info(9)struct rpmsg_hdr(9)struct virtio_rpmsg_channel(9)rpmsg_sg_init(9)__ept_release(9)rpmsg_send_offchannel_raw(9)
like, the whole rpmsg friend group is right there. click through, it's giving lore. ππ
and that's the page, bestie!! π no cap, you ate this. this one came out of ./drivers/rpmsg and it's dated October 2026 β so go forth, destroy some endpoints responsibly, and remember: bound-to-a-channel is a whole different conversation. mwah. ππ¦β¨
π¦ 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