kernel/power/swap.c

Source file repositories/reference/linux-study-clean/kernel/power/swap.c

File Facts

System
Linux kernel
Corpus path
kernel/power/swap.c
Extension
.c
Size
41523 bytes
Lines
1711
Domain
Core OS
Bucket
Scheduler, Processes, Timers, Sync, And Syscalls
Inferred role
Core OS: exported/initcall integration point
Status
integration 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

core_initcall(swsusp_header_init);

static int __init hibernate_compression_threads_setup(char *str)
{
	int rc = kstrtouint(str, 0, &hibernate_compression_threads);

	if (rc)
		return rc;

	if (hibernate_compression_threads < 1)
		hibernate_compression_threads = CMP_THREADS;

	return 1;

}

__setup("hibernate_compression_threads=", hibernate_compression_threads_setup);

Annotation

Implementation Notes