kernel/trace/rv/monitors/opid/opid.h

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

File Facts

System
Linux kernel
Corpus path
kernel/trace/rv/monitors/opid/opid.h
Extension
.h
Size
1195 bytes
Lines
59
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_opid {
	char *state_names[state_max_opid];
	char *event_names[event_max_opid];
	char *env_names[env_max_opid];
	unsigned char function[state_max_opid][event_max_opid];
	unsigned char initial_state;
	bool final_states[state_max_opid];
};

static const struct automaton_opid automaton_opid = {
	.state_names = {
		"any",
	},
	.event_names = {
		"sched_need_resched",
		"sched_waking",
	},
	.env_names = {
		"irq_off",
		"preempt_off",
	},
	.function = {
		{           any_opid,           any_opid },
	},
	.initial_state = any_opid,
	.final_states = { 1 },
};

Annotation

Implementation Notes