drivers/gpu/drm/xe/xe_macros.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_macros.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/xe/xe_macros.h
Extension
.h
Size
412 bytes
Lines
23
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

#ifndef _XE_MACROS_H_
#define _XE_MACROS_H_

#include <linux/bug.h>

#define XE_WARN_ON WARN_ON

#define XE_IOCTL_DBG(xe, cond) ({					\
	int cond__ = !!(cond);						\
	if (cond__)							\
		drm_dbg(&(xe)->drm,					\
			"Ioctl argument check failed at %s:%d: %s",	\
			__FILE__, __LINE__, #cond);			\
	cond__;								\
})

#endif

Annotation

Implementation Notes