aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/vsock/msg_zerocopy_common.h
blob: 3763c5ccedb95e1716b3c001ea0e40d532e2a9b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef MSG_ZEROCOPY_COMMON_H
#define MSG_ZEROCOPY_COMMON_H

#include <stdbool.h>

#ifndef SOL_VSOCK
#define SOL_VSOCK	287
#endif

#ifndef VSOCK_RECVERR
#define VSOCK_RECVERR	1
#endif

void enable_so_zerocopy(int fd);
void vsock_recv_completion(int fd, const bool *zerocopied);

#endif /* MSG_ZEROCOPY_COMMON_H */