kernel/trace/rv/monitors/deadline/deadline.h
Source file repositories/reference/linux-study-clean/kernel/trace/rv/monitors/deadline/deadline.h
File Facts
- System
- Linux kernel
- Corpus path
kernel/trace/rv/monitors/deadline/deadline.h- Extension
.h- Size
- 5757 bytes
- Lines
- 204
- 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.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/uaccess.hlinux/sched/deadline.hasm/syscall.huapi/linux/sched/types.htrace/events/sched.h
Detected Declarations
function should_skip_syscall_handlefunction is_supported_typefunction is_server_typefunction dl_sefunction task_is_scx_enabledfunction get_server_typefunction extract_paramsfunction init_storagefunction for_each_possible_cpufunction handle_newtaskfunction handle_exit
Annotated Snippet
if (p->policy == SCHED_DEADLINE) {
if (!da_create_storage(EXPAND_ID_TASK(p), NULL)) {
read_unlock(&tasklist_lock);
goto fail;
}
}
}
read_unlock(&tasklist_lock);
return 0;
fail:
da_monitor_destroy();
return -ENOMEM;
}
static void __maybe_unused handle_newtask(void *data, struct task_struct *task, u64 flags)
{
/* Might be superfluous as tasks are not started with this policy.. */
if (task->policy == SCHED_DEADLINE)
da_create_storage(EXPAND_ID_TASK(task), NULL);
}
static void __maybe_unused handle_exit(void *data, struct task_struct *p, bool group_dead)
{
if (p->policy == SCHED_DEADLINE)
da_destroy_storage(get_entity_id(&p->dl, DL_TASK, DL_TASK));
}
#endif
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/uaccess.h`, `linux/sched/deadline.h`, `asm/syscall.h`, `uapi/linux/sched/types.h`, `trace/events/sched.h`.
- Detected declarations: `function should_skip_syscall_handle`, `function is_supported_type`, `function is_server_type`, `function dl_se`, `function task_is_scx_enabled`, `function get_server_type`, `function extract_params`, `function init_storage`, `function for_each_possible_cpu`, `function handle_newtask`.
- Atlas domain: Core OS / Scheduler, Processes, Timers, Sync, And Syscalls.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.