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

mainloop.h (502B)


      1/* SPDX-License-Identifier: LGPL-2.1+ */
      2/* Copyright (C) 2022, Linaro Ltd - Daniel Lezcano <daniel.lezcano@linaro.org> */
      3#ifndef __THERMAL_TOOLS_MAINLOOP_H
      4#define __THERMAL_TOOLS_MAINLOOP_H
      5
      6typedef int (*mainloop_callback_t)(int fd, void *data);
      7
      8extern int mainloop(unsigned int timeout);
      9extern int mainloop_add(int fd, mainloop_callback_t cb, void *data);
     10extern int mainloop_del(int fd);
     11extern void mainloop_exit(void);
     12extern int mainloop_init(void);
     13extern void mainloop_fini(void);
     14
     15#endif