[OpenWrt-Devel] [PATCH 4/5] ustream: add function	ustream_fill_with_read_buf().
    Yousong Zhou 
    yszhou4tech at gmail.com
       
    Thu Dec 11 23:01:14 EST 2014
    
    
  
On 12 December 2014 at 00:33, Felix Fietkau <nbd at openwrt.org> wrote:
> On 2014-11-11 11:51, Yousong Zhou wrote:
>> Useful in the following use pattern.
>>
>>       int available = ustream_pending_data(s, false);
>>       if (available >= sizeof(struct msghdr)) {
>>               struct msghdr h;
>>               ustream_fill_with_read_buf(s, &h, sizeof(h));
>>       }
>>
>> Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
> I'd prefer to have this named ustream_read() instead - similar to
> ustream_write().
Makes sense.  Will adapt the patch.
                yousong
>
> - Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
    
    
More information about the openwrt-devel
mailing list