DragonFly-2.3.2.281.g894bb master sys/vfs/devfs devfs.h devfs_co

看板DFBSD_commit作者時間16年前 (2009/08/05 21:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1AUOAMEJ (DFBSD_commit)