#
7a6818d3 |
|
14-May-2008 |
Axel Dörfler <axeld@pinc-software.de> |
Work in progress: * added [un]publish_device() calls to the device manager. * added a very basic devfs emulation to the playground to be able to test how the manager reacts to opened devices. * renamed *_device() functions to *_node() in the device manager API. * made B_DEVICE_FIND_CHILD_FLAGS a generic flags field, and renamed it to B_DEVICE_FLAGS. * added support for keeping a driver loaded as long as its device is available. * implemented get_next_child_node(). * added test for device removal, and implemented unregister_node() for this. * fixed some bugs in the device node reference/initialization count maintenance. * moved more code from register_node() to device_node::Register(). * initialize the device_node::fFlags member to the value of B_DEVICE_FLAGS, and have additional private flags. * renamed UninitUnusedChildren() to UninitUnusedDriver(), and fixed this function by adding the new flag NODE_FLAG_REGISTER_INITIALIZED. * Now remembers the support when a driver is registered - this will be used later to be able to compare with a new driver without having to call supports_device() again. * Removed NODE_FLAG_REMOVE_ON_UNINIT again, as that was pretty stupid - there is reference counting for a reason. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25498 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
32bcfcf6 |
|
22-Apr-2008 |
Axel Dörfler <axeld@pinc-software.de> |
Some more changes towards a working prototype: * The "net" driver is now also loaded. * The node tree is now dumped. * If registering fails, the node is now removed from its parent again (for now, correct would be to release it). * device_node::_RegisterDynamic() now also checks for the driver path. * _RegisterFixed() no longer calls supports_device() - since it has been directly specified, we will assume the user knows what he is doing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25112 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2d8e02e4 |
|
15-Apr-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Started playground for the new device manager. This will eventually evolve into the full thing, and will then be adapted to the kernel. * Doesn't do a lot at this point - it can be built as a test app under BeOS and Haiku. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24973 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7a6818d3fa3871322557df09106171d2150bdc8b |
|
14-May-2008 |
Axel Dörfler <axeld@pinc-software.de> |
Work in progress: * added [un]publish_device() calls to the device manager. * added a very basic devfs emulation to the playground to be able to test how the manager reacts to opened devices. * renamed *_device() functions to *_node() in the device manager API. * made B_DEVICE_FIND_CHILD_FLAGS a generic flags field, and renamed it to B_DEVICE_FLAGS. * added support for keeping a driver loaded as long as its device is available. * implemented get_next_child_node(). * added test for device removal, and implemented unregister_node() for this. * fixed some bugs in the device node reference/initialization count maintenance. * moved more code from register_node() to device_node::Register(). * initialize the device_node::fFlags member to the value of B_DEVICE_FLAGS, and have additional private flags. * renamed UninitUnusedChildren() to UninitUnusedDriver(), and fixed this function by adding the new flag NODE_FLAG_REGISTER_INITIALIZED. * Now remembers the support when a driver is registered - this will be used later to be able to compare with a new driver without having to call supports_device() again. * Removed NODE_FLAG_REMOVE_ON_UNINIT again, as that was pretty stupid - there is reference counting for a reason. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25498 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
32bcfcf6a94f8d003217ce24f5071b0533fb923f |
|
22-Apr-2008 |
Axel Dörfler <axeld@pinc-software.de> |
Some more changes towards a working prototype: * The "net" driver is now also loaded. * The node tree is now dumped. * If registering fails, the node is now removed from its parent again (for now, correct would be to release it). * device_node::_RegisterDynamic() now also checks for the driver path. * _RegisterFixed() no longer calls supports_device() - since it has been directly specified, we will assume the user knows what he is doing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25112 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2d8e02e435a866704afd745454a5c1165280da2a |
|
15-Apr-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Started playground for the new device manager. This will eventually evolve into the full thing, and will then be adapted to the kernel. * Doesn't do a lot at this point - it can be built as a test app under BeOS and Haiku. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24973 a95241bf-73f2-0310-859d-f6bbb57e9c96
|