共 3 篇文章 |
|
debugfs -- usefull linux kernel debug tools_M...与通过/proc文件系统获取内核信息不同的是:如果需要查看目前内核中没有统计的信息,只要更改下使用debugfs统计信息的模块,即更改或添加输出信息的内容,重新编译模块,加载模块。root_entry = debugfs_create_dir("debugfs-root", NULL);在执行完make命令后插入模块之前,还需要... 阅1180 转2 评0 公众公开 10-06-28 12:44 |
struct dentry *debugfs_create_blob(const char *name, mode_t mode, struct dentry *parent,struct debugfs_blob_wrapper *blob);void debugfs_remove_recursive(struct dentry *dentry);IS_ERR(*dentry)) {/* 以下三函数首先对mode设置合时的模式,然后都最终调用debugfs_get_inode,建立dentry与inode的联系*/switch (mode &S_IFMT) {c... 阅7361 转14 评0 公众公开 10-06-28 11:54 |
阅2536 转6 评0 公众公开 10-06-28 11:35 |