/* * Copyright 2009 Virtual Iron. * by Konrad Rzeszutek * * This code exposes the buffer-cache to userland via sysfs. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License v2.0 as published by * the Free Software Foundation * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define DUMP_DMA_VERSION "0.1" MODULE_AUTHOR("Konrad Rzeszutek "); MODULE_DESCRIPTION("dumps DMA stats"); MODULE_LICENSE("GPL"); MODULE_VERSION(DUMP_DMA_VERSION); static int __init dma_dump_init(void) { dump_stack(); debug_dma_dump_mappings(NULL); return -ENODEV; } static void __exit dma_dump_exit(void) { } module_init(dma_dump_init); module_exit(dma_dump_exit);