msg_zerocopy_common.h 358 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef MSG_ZEROCOPY_COMMON_H
  3. #define MSG_ZEROCOPY_COMMON_H
  4. #include <stdbool.h>
  5. #ifndef SOL_VSOCK
  6. #define SOL_VSOCK 287
  7. #endif
  8. #ifndef VSOCK_RECVERR
  9. #define VSOCK_RECVERR 1
  10. #endif
  11. void enable_so_zerocopy(int fd);
  12. void vsock_recv_completion(int fd, const bool *zerocopied);
  13. #endif /* MSG_ZEROCOPY_COMMON_H */