kernel/trace/rv/monitors/sco/sco.h

Source file repositories/reference/linux-study-clean/kernel/trace/rv/monitors/sco/sco.h

File Facts

System
Linux kernel
Corpus path
kernel/trace/rv/monitors/sco/sco.h
Extension
.h
Size
1143 bytes
Lines
50
Domain
Core OS
Bucket
Scheduler, Processes, Timers, Sync, And Syscalls
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

struct automaton_sco {
	char *state_names[state_max_sco];
	char *event_names[event_max_sco];
	unsigned char function[state_max_sco][event_max_sco];
	unsigned char initial_state;
	bool final_states[state_max_sco];
};

static const struct automaton_sco automaton_sco = {
	.state_names = {
		"thread_context",
		"scheduling_context",
	},
	.event_names = {
		"sched_set_state",
		"schedule_entry",
		"schedule_exit",
	},
	.function = {
		{     thread_context_sco, scheduling_context_sco,          INVALID_STATE },
		{          INVALID_STATE,          INVALID_STATE,     thread_context_sco },
	},
	.initial_state = thread_context_sco,
	.final_states = { 1, 0 },
};

Annotation

Implementation Notes