kernel/trace/rv/monitors/wip/wip.h

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

File Facts

System
Linux kernel
Corpus path
kernel/trace/rv/monitors/wip/wip.h
Extension
.h
Size
1097 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_wip {
	char *state_names[state_max_wip];
	char *event_names[event_max_wip];
	unsigned char function[state_max_wip][event_max_wip];
	unsigned char initial_state;
	bool final_states[state_max_wip];
};

static const struct automaton_wip automaton_wip = {
	.state_names = {
		"preemptive",
		"non_preemptive",
	},
	.event_names = {
		"preempt_disable",
		"preempt_enable",
		"sched_waking",
	},
	.function = {
		{ non_preemptive_wip,      INVALID_STATE,      INVALID_STATE },
		{      INVALID_STATE,     preemptive_wip, non_preemptive_wip },
	},
	.initial_state = preemptive_wip,
	.final_states = { 1, 0 },
};

Annotation

Implementation Notes