File:  [Apple Darwin 0.x] / driverkit / notes / restart_problems
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:37:50 2018 UTC (8 years, 2 months ago) by root
Branches: MAIN, Apple
CVS tags: HEAD, Darwin03, Darwin02
Darwin 0.2 Driver Kit

problem - a driver deletes some ports via device_delete(), then crashes. On restart, should it have access to all of the dev_ports it initially had? Currently it won't because Config did device_destroy()'s on the dev_ports. Those dev_entry's willl be missing from the driver_entry's dev_list...

Also, how to assign a deleted device to another driver if the deletor keeps running? A config_scan() will just add it to that driver's dev_list and since that driver's already running, it won't get exec'd. 

Only solution I see is to disallow device_delete() - only allow driver_delete().

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.