drivers/gpu/drm/nouveau/nvif/driver.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nvif/driver.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/nouveau/nvif/driver.c
Extension
.c
Size
1529 bytes
Lines
41
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 <nvif/driver.h>
#include <nvif/client.h>

int
nvif_driver_init(const char *drv, const char *cfg, const char *dbg,
		 const char *name, u64 device, struct nvif_client *client)
{
	int ret;

	client->driver = &nvif_driver_nvkm;

	ret = client->driver->init(name, device, cfg, dbg, &client->object.priv);
	if (ret)
		return ret;

	return nvif_client_ctor(client, name, client);
}

Annotation

Implementation Notes