tools/testing/selftests/sched_ext/create_dsq.bpf.c

Source file repositories/reference/linux-study-clean/tools/testing/selftests/sched_ext/create_dsq.bpf.c

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/sched_ext/create_dsq.bpf.c
Extension
.c
Size
1177 bytes
Lines
59
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

if (err) {
			scx_bpf_error("Failed to create DSQ %d", i);
			return 0;
		}
	}

	bpf_for(i, 0, 1024) {
		scx_bpf_destroy_dsq(i);
	}

	return 0;
}

SEC(".struct_ops.link")
struct sched_ext_ops create_dsq_ops = {
	.init_task		= (void *) create_dsq_init_task,
	.exit_task		= (void *) create_dsq_exit_task,
	.init			= (void *) create_dsq_init,
	.name			= "create_dsq",
};

Annotation

Implementation Notes