DragonFly-2.3.2.281.g894bb master sys/vfs/devfs devfs.h devfs_core.c devfs_rules.c devfs_rules.h devfs_vnops.c

Alex Hornung alexh at crater.dragonflybsd.org
Wed Aug 5 05:38:30 PDT 2009


commit 894bbb25883efdeb23085f7441fb1d2a4dd6a827
Author: Alex Hornung <ahornung at 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





More information about the Commits mailing list