GNU Linux-libre 6.8.7-gnu
[releases.git] / tools / testing / vsock / msg_zerocopy_common.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef MSG_ZEROCOPY_COMMON_H
3 #define MSG_ZEROCOPY_COMMON_H
4
5 #include <stdbool.h>
6
7 #ifndef SOL_VSOCK
8 #define SOL_VSOCK       287
9 #endif
10
11 #ifndef VSOCK_RECVERR
12 #define VSOCK_RECVERR   1
13 #endif
14
15 void enable_so_zerocopy(int fd);
16 void vsock_recv_completion(int fd, const bool *zerocopied);
17
18 #endif /* MSG_ZEROCOPY_COMMON_H */