On 18/04/2018 13:35, Marc-André Lureau wrote: >> CharBackend is not the frontend, it is *used* by the front-end. It is >> the qemu_chr_* functions that are named wrong (they're named according >> to the user rather than the recipient). > If I follow you and the naming, you have this in mind: > > - Chardev: stdio, mux, ringbuf, pty, file, null etc.. > - CharBackend: the "user" end > - frontend: the "user"
The frontend is the device, the monitor, etc. The backend is how the frontend sees a Chardev, it never talks to it directly. Perhaps the confusing part is that the backend is also how the Chardev talks to the frontend? Paolo > It is quite confusing to me that CharBackend is for the "user" > frontend, and the backend of Chardev. > > You have to switch your mind > depending on the context or the point of view. > > I'd rather use that terminology: > > - ChardevBackend: stdio, mux, ringbuf, pty, file, null etc.. > - CharFrontend: the "user" end > - frontend the "user" > > This way, there is only one direction from backend to frontend > (regardless of the point of view from chardev to frontend)