drivers/devfreq/governor_userspace.c

Source file repositories/reference/linux-study-clean/drivers/devfreq/governor_userspace.c

File Facts

System
Linux kernel
Corpus path
drivers/devfreq/governor_userspace.c
Extension
.c
Size
3486 bytes
Lines
161
Domain
Driver Families
Bucket
drivers/devfreq
Inferred role
Driver Families: exported/initcall integration point
Status
integration implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

subsys_initcall(devfreq_userspace_init);

static void __exit devfreq_userspace_exit(void)
{
	int ret;

	ret = devfreq_remove_governor(&devfreq_userspace);
	if (ret)
		pr_err("%s: failed remove governor %d\n", __func__, ret);

	return;
}
module_exit(devfreq_userspace_exit);
MODULE_DESCRIPTION("DEVFREQ Userspace governor");
MODULE_LICENSE("GPL");

Annotation

Implementation Notes