mbox series

[0/1,v2] rpmsg: char - treat `ENOMEM` as `EAGAIN`

Message ID 20220313024541.1579848-1-tim@klingt.org (mailing list archive)
Headers show
Series rpmsg: char - treat `ENOMEM` as `EAGAIN` | expand

Message

Tim Blechmann March 13, 2022, 2:45 a.m. UTC
From: Tim Blechmann <tim@klingt.org>

This patch should allow the use of `rpmsg_char` character devices with
libraries that do a `poll`/`write` loop and expect `EAGAIN` when sending
fails and the user space application needs to `poll` to wait for more
space to be available.
`boost::asio::write` is a notable example of a library, which implements
such a loop.


Tim Blechmann (1):
  rpmsg: char - treat `ENOMEM` as `EAGAIN`

 drivers/rpmsg/rpmsg_char.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)