cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

copyfile.h (464B)


      1// SPDX-License-Identifier: GPL-2.0
      2#ifndef PERF_COPYFILE_H_
      3#define PERF_COPYFILE_H_
      4
      5#include <linux/types.h>
      6#include <sys/types.h>
      7#include <fcntl.h>
      8
      9struct nsinfo;
     10
     11int copyfile(const char *from, const char *to);
     12int copyfile_mode(const char *from, const char *to, mode_t mode);
     13int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
     14int copyfile_offset(int ifd, loff_t off_in, int ofd, loff_t off_out, u64 size);
     15
     16#endif // PERF_COPYFILE_H_