[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 1/5] char: Let the caller know how many bytes we
From: |
Amit Shah |
Subject: |
[Qemu-devel] Re: [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes |
Date: |
Tue, 6 Apr 2010 13:24:28 +0530 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On (Tue) Apr 06 2010 [09:40:55], Gerd Hoffmann wrote:
> Hi,
>
>> Make 'len' a pointer instead, and indicate how much of the string was
>> written. The return value will either be the same as 'len' or a negative
>> number indicating an error condition.
>
> I would follow the unix write syscall semantic here and report the
> number of written bytes using the return value. Matter of taste though.
Yeah; some re-org in the write() calls in qemu-char would be needed to
do that, but yes, that can be done too.
Amit
- [Qemu-devel] Re: [PATCH 5/5] virtio-console: Throttle virtio-serial-bus if we can't consume any more guest data, (continued)
- Re: [Qemu-devel] [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes, Paul Brook, 2010/04/05
- Re: [Qemu-devel] [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes, Amit Shah, 2010/04/05
- Re: [Qemu-devel] [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes, Paul Brook, 2010/04/06
- Re: [Qemu-devel] [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes, Amit Shah, 2010/04/06
- Re: [Qemu-devel] [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes, Gerd Hoffmann, 2010/04/06
- Re: [Qemu-devel] [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes, Amit Shah, 2010/04/06
- Re: [Qemu-devel] [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes, Gerd Hoffmann, 2010/04/06
- Re: [Qemu-devel] [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes, Jamie Lokier, 2010/04/06
[Qemu-devel] Re: [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes, Gerd Hoffmann, 2010/04/06
- [Qemu-devel] Re: [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes,
Amit Shah <=
[Qemu-devel] Re: [PATCH 0/5] chardev, virtio-console: flow control, error handling, Gerd Hoffmann, 2010/04/06