![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0-only 0002 #include <vmlinux.h> 0003 #include <bpf/bpf_helpers.h> 0004 0005 __noinline int foo(int *p) 0006 { 0007 return p ? (*p = 42) : 0; 0008 } 0009 0010 const volatile int i; 0011 0012 SEC("tc") 0013 int test_cls(struct __sk_buff *skb) 0014 { 0015 return foo((int *)&i); 0016 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |