Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   drochner
Date:           Wed Feb  6 20:24:17 UTC 2008

Modified Files:
        src/sys/kern: kern_drvctl.c subr_autoconf.c
        src/sys/sys: device.h

Log Message:
The tricks done in device_foreach_child() still don't make it safe to use
by config_detach_children(), because the latter can work recursively
and remove any number of devices, so rewrite config_detach_children()
to restart list traversal after each call of config_detach(), and since
only one user of device_foreach_child() is left (in kern_drvctl.c),
and it is simpler to open-code the loop than to deal with callbacks,
just remove it.


To generate a diff of this commit:
cvs rdiff -r1.12 -r1.13 src/sys/kern/kern_drvctl.c
cvs rdiff -r1.129 -r1.130 src/sys/kern/subr_autoconf.c
cvs rdiff -r1.101 -r1.102 src/sys/sys/device.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index