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

bpf_lirc.h (698B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef _BPF_LIRC_H
      3#define _BPF_LIRC_H
      4
      5#include <uapi/linux/bpf.h>
      6
      7#ifdef CONFIG_BPF_LIRC_MODE2
      8int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
      9int lirc_prog_detach(const union bpf_attr *attr);
     10int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr);
     11#else
     12static inline int lirc_prog_attach(const union bpf_attr *attr,
     13				   struct bpf_prog *prog)
     14{
     15	return -EINVAL;
     16}
     17
     18static inline int lirc_prog_detach(const union bpf_attr *attr)
     19{
     20	return -EINVAL;
     21}
     22
     23static inline int lirc_prog_query(const union bpf_attr *attr,
     24				  union bpf_attr __user *uattr)
     25{
     26	return -EINVAL;
     27}
     28#endif
     29
     30#endif /* _BPF_LIRC_H */