Commit 5bcf0cb
committed
Narrow generated skeleton cleanup to userspace object lifetime
Keep generated atexit cleanup limited to destroying the libbpf skeleton object,
and avoid using it for kernel lifecycle state such as struct_ops links.
This preserves explicit lifecycle behavior for struct_ops registration while
still releasing userspace-owned skeleton resources on process exit.1 parent 8f3c455 commit 5bcf0cb
1 file changed
Lines changed: 4 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2959 | 2959 | | |
2960 | 2960 | | |
2961 | 2961 | | |
2962 | | - | |
| 2962 | + | |
2963 | 2963 | | |
2964 | 2964 | | |
2965 | 2965 | | |
2966 | | - | |
2967 | | - | |
2968 | | - | |
2969 | | - | |
2970 | | - | |
2971 | | - | |
2972 | | - | |
2973 | | - | |
2974 | | - | |
2975 | | - | |
2976 | | - | |
2977 | | - | |
2978 | | - | |
2979 | | - | |
2980 | 2966 | | |
2981 | | - | |
| 2967 | + | |
2982 | 2968 | | |
2983 | 2969 | | |
2984 | 2970 | | |
2985 | | - | |
| 2971 | + | |
2986 | 2972 | | |
2987 | 2973 | | |
2988 | 2974 | | |
| |||
4874 | 4860 | | |
4875 | 4861 | | |
4876 | 4862 | | |
4877 | | - | |
| 4863 | + | |
4878 | 4864 | | |
4879 | 4865 | | |
4880 | 4866 | | |
| |||
0 commit comments