• José Luis Millán's avatar
    liburing zero copy (#1273) · 3cefa117
    由 José Luis Millán 提交于
    * liburing zero copy
    
    By pre-registering the send buffers we can make use of zero copy in
    order to avoid the kernel memcpy-ing the buffers.
    
    Send buffers are allocated by us and will be set as available once
    liburing notifies us about it.
    
    * handle feedback
    
    * handle ENOMEM error when registering buffers
    
    * fix error comparison
    
    * Cosmetic
    
    * Try to make compiled happy
    
    * Do not use errno variable name
    
    * Use error = -1 * err everywhere
    
    * remove uneeded '-1 *' to negate an int
    
    ---------
    Co-authored-by: 's avatarIñaki Baz Castillo <ibc@aliax.net>
    3cefa117
DepLibUring.hpp 3.5 KB