Skip to content
  • Amit Shah's avatar
    char: don't limit data sent to backends to 1k per buffer · 9bd7854e
    Amit Shah authored
    
    
    chardevs have a 'can_read' function via which backends specify
    the amount of data they can receive. When can_read returns > 0,
    apps can start sending data. However, each chardev driver here
    allows a max. of 1k bytes inspite of the backend being able to
    receive more.
    
    The best we can do here is to allocate s->max_size bytes from
    the heap on each call (which is the number returned by the
    backend from the can_read call).
    
    This is an intermediate step to bump up the bytes written in
    each call to 4k.
    
    Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    9bd7854e