drivers/gpu/drm/nouveau/nouveau_debugfs.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nouveau_debugfs.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/nouveau/nouveau_debugfs.h
Extension
.h
Size
1013 bytes
Lines
58
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

struct nouveau_debugfs {
	struct nvif_object ctrl;
};

static inline struct nouveau_debugfs *
nouveau_debugfs(struct drm_device *dev)
{
	return nouveau_drm(dev)->debugfs;
}

extern void  nouveau_drm_debugfs_init(struct drm_minor *);
extern int  nouveau_debugfs_init(struct nouveau_drm *);
extern void nouveau_debugfs_fini(struct nouveau_drm *);

extern struct dentry *nouveau_debugfs_root;

void nouveau_module_debugfs_init(void);
void nouveau_module_debugfs_fini(void);
#else
static inline void
nouveau_drm_debugfs_init(struct drm_minor *minor)
{}

static inline int
nouveau_debugfs_init(struct nouveau_drm *drm)
{
	return 0;
}

static inline void
nouveau_debugfs_fini(struct nouveau_drm *drm)
{
}

static inline void
nouveau_module_debugfs_init(void)
{
}

static inline void
nouveau_module_debugfs_fini(void)
{
}

#endif

#endif

Annotation

Implementation Notes