kernel/trace/rv/monitors/snroc/snroc.h

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

File Facts

System
Linux kernel
Corpus path
kernel/trace/rv/monitors/snroc/snroc.h
Extension
.h
Size
1154 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_snroc {
	char *state_names[state_max_snroc];
	char *event_names[event_max_snroc];
	unsigned char function[state_max_snroc][event_max_snroc];
	unsigned char initial_state;
	bool final_states[state_max_snroc];
};

static const struct automaton_snroc automaton_snroc = {
	.state_names = {
		"other_context",
		"own_context",
	},
	.event_names = {
		"sched_set_state",
		"sched_switch_in",
		"sched_switch_out",
	},
	.function = {
		{      INVALID_STATE,  own_context_snroc,       INVALID_STATE },
		{  own_context_snroc,      INVALID_STATE, other_context_snroc },
	},
	.initial_state = other_context_snroc,
	.final_states = { 1, 0 },
};

Annotation

Implementation Notes