drivers/dma/idxd/debugfs.c

Source file repositories/reference/linux-study-clean/drivers/dma/idxd/debugfs.c

File Facts

System
Linux kernel
Corpus path
drivers/dma/idxd/debugfs.c
Extension
.c
Size
3458 bytes
Lines
139
Domain
Driver Families
Bucket
drivers/dma
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

if (IS_ERR(idxd->dbgfs_evl_file)) {
			debugfs_remove_recursive(idxd->dbgfs_dir);
			idxd->dbgfs_dir = NULL;
			return PTR_ERR(idxd->dbgfs_evl_file);
		}
	}

	return 0;
}

void idxd_device_remove_debugfs(struct idxd_device *idxd)
{
	debugfs_remove_recursive(idxd->dbgfs_dir);
}

int idxd_init_debugfs(void)
{
	if (!debugfs_initialized())
		return 0;

	idxd_debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
	if (IS_ERR(idxd_debugfs_dir))
		return  PTR_ERR(idxd_debugfs_dir);
	return 0;
}

void idxd_remove_debugfs(void)
{
	debugfs_remove_recursive(idxd_debugfs_dir);
}

Annotation

Implementation Notes