DEVFS - Cleanup of dead functions/comments; various fixes
authorAlex Hornung <ahornung@gmail.com>
Wed, 5 Aug 2009 01:10:20 +0000 (02:10 +0100)
committerAlex Hornung <ahornung@gmail.com>
Wed, 5 Aug 2009 13:31:41 +0000 (14:31 +0100)
commit894bbb25883efdeb23085f7441fb1d2a4dd6a827
tree8111876ac17c46f5a0d347eef9088d85821b49f7
parent8f6aa43e63f061f3d7aa732d8443fb0498b72642
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.
sys/vfs/devfs/devfs.h
sys/vfs/devfs/devfs_core.c
sys/vfs/devfs/devfs_rules.c
sys/vfs/devfs/devfs_rules.h
sys/vfs/devfs/devfs_vnops.c