drivers/gpu/drm/nouveau/nvkm/subdev/therm/fannil.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nvkm/subdev/therm/fannil.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/nouveau/nvkm/subdev/therm/fannil.c
Extension
.c
Size
1587 bytes
Lines
53
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source 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

#include "priv.h"

static int
nvkm_fannil_get(struct nvkm_therm *therm)
{
	return -ENODEV;
}

static int
nvkm_fannil_set(struct nvkm_therm *therm, int percent)
{
	return -ENODEV;
}

int
nvkm_fannil_create(struct nvkm_therm *therm)
{
	struct nvkm_fan *priv;

	priv = kzalloc_obj(*priv);
	therm->fan = priv;
	if (!priv)
		return -ENOMEM;

	priv->type = "none / external";
	priv->get = nvkm_fannil_get;
	priv->set = nvkm_fannil_set;
	return 0;
}

Annotation

Implementation Notes