看板 DFBSD_commit 關於我們 聯絡資訊
commit 894bbb25883efdeb23085f7441fb1d2a4dd6a827 Author: Alex Hornung <ahornung@gmail.com> Date: Wed Aug 5 02:10:20 2009 +0100 DEVFS - Cleanup of dead functions/comments; various fixes Cleanup of dead functions and structures and cleanup of C++-style comments. Fixes include: - function devfs_node_is_accessible, which checks if the node is valid and if it isn't a hidden node. - calls to devfs_node_is_accessible from most vnops to ensure validity of the devfs_node they operate on. - Change of devfs_rule struct to use dynamically allocated memory instead of using pre-sized buffers. This way we avoid wasting a lot of memory for each devfs_rule. Summary of changes: sys/vfs/devfs/devfs.h | 18 +----------- sys/vfs/devfs/devfs_core.c | 35 +++++++++++++--------- sys/vfs/devfs/devfs_rules.c | 61 ++++++++++++++++++++++++++++++++------ sys/vfs/devfs/devfs_rules.h | 13 ++++++-- sys/vfs/devfs/devfs_vnops.c | 67 ++++++++++++++----------------------------- 5 files changed, 104 insertions(+), 90 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/894bbb25883efdeb23085f7441fb1d2a4dd6a827 -- DragonFly BSD source repository