kernel/trace/rv/monitors/wwnr/wwnr.h

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

File Facts

System
Linux kernel
Corpus path
kernel/trace/rv/monitors/wwnr/wwnr.h
Extension
.h
Size
1075 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_wwnr {
	char *state_names[state_max_wwnr];
	char *event_names[event_max_wwnr];
	unsigned char function[state_max_wwnr][event_max_wwnr];
	unsigned char initial_state;
	bool final_states[state_max_wwnr];
};

static const struct automaton_wwnr automaton_wwnr = {
	.state_names = {
		"not_running",
		"running",
	},
	.event_names = {
		"switch_in",
		"switch_out",
		"wakeup",
	},
	.function = {
		{       running_wwnr,      INVALID_STATE,   not_running_wwnr },
		{      INVALID_STATE,   not_running_wwnr,      INVALID_STATE },
	},
	.initial_state = not_running_wwnr,
	.final_states = { 1, 0 },
};

Annotation

Implementation Notes