tools/testing/selftests/net/sample_ret0.bpf.c

Source file repositories/reference/linux-study-clean/tools/testing/selftests/net/sample_ret0.bpf.c

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/net/sample_ret0.bpf.c
Extension
.c
Size
224 bytes
Lines
11
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#define SEC(name) __attribute__((section(name), used))

/* Sample program which should always load for testing control paths. */
SEC("xdp")
int func()
{
	return 0;
}

Annotation

Implementation Notes