• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) International Business Machines  Corp., 2007
4  * Copyright (c) 2014 Cyril Hrubis <chrubis@suse.cz>
5  */
6 
7 #ifndef LAPI_VMSPLICE_H__
8 #define LAPI_VMSPLICE_H__
9 
10 #include "config.h"
11 #include "lapi/syscalls.h"
12 
13 #include "lapi/iovec.h"
14 
15 #if !defined(HAVE_VMSPLICE)
vmsplice(int fd,const struct iovec * iov,unsigned long nr_segs,unsigned int flags)16 static inline ssize_t vmsplice(int fd, const struct iovec *iov,
17 	                       unsigned long nr_segs, unsigned int flags)
18 {
19 	return tst_syscall(__NR_vmsplice, fd, iov, nr_segs, flags);
20 }
21 #endif
22 
23 #endif /* LAPI_VMSPLICE_H__ */
24