Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright (c) 2020 Facebook */
0003 #ifndef _BPF_TESTMOD_H
0004 #define _BPF_TESTMOD_H
0005 
0006 #include <linux/types.h>
0007 
0008 struct bpf_testmod_test_read_ctx {
0009     char *buf;
0010     loff_t off;
0011     size_t len;
0012 };
0013 
0014 struct bpf_testmod_test_write_ctx {
0015     char *buf;
0016     loff_t off;
0017     size_t len;
0018 };
0019 
0020 struct bpf_testmod_test_writable_ctx {
0021     bool early_ret;
0022     int val;
0023 };
0024 
0025 #endif /* _BPF_TESTMOD_H */