qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] mux: fix ctrl-a b again


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] mux: fix ctrl-a b again
Date: Wed, 18 Apr 2018 13:55:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]