drivers/gpu/drm/nouveau/nvkm/engine/fifo/runq.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nvkm/engine/fifo/runq.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/nouveau/nvkm/engine/fifo/runq.c
Extension
.c
Size
1516 bytes
Lines
46
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 "runq.h"
#include "priv.h"

void
nvkm_runq_del(struct nvkm_runq *runq)
{
	list_del(&runq->head);
	kfree(runq);
}

struct nvkm_runq *
nvkm_runq_new(struct nvkm_fifo *fifo, int pbid)
{
	struct nvkm_runq *runq;

	if (!(runq = kzalloc_obj(*runq)))
		return NULL;

	runq->func = fifo->func->runq;
	runq->fifo = fifo;
	runq->id = pbid;
	list_add_tail(&runq->head, &fifo->runqs);
	return runq;
}

Annotation

Implementation Notes