Source-Changes archive

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

CVS commit: src/sys/arch/xen



Module Name:    src
Committed By:   bouyer
Date:           Sun Mar 26 22:02:57 UTC 2006

Modified Files:
        src/sys/arch/xen/include: xenbus.h
        src/sys/arch/xen/xenbus: xenbus_probe.c

Log Message:
Properly handle dynamic attach/detach of device:
- keep a linked list of xenbus_device in the xenbus_infrastructure, and
  keep a pointer to struct device for each xenbus_device
- xenbus_probe_device_type(): check that the device is not already attached
- when we get a frontend_changed callback, call xenbus_probe_device_type()
- When a device changes to state XenbusStateClosed, config_detach() it
  and free the structures.
While there, move xbusd_path[] to the end of struct xenbus_device, and
allocate only the space needed to store the path. Garbage-collect
struct xenbus_driver, it's not needed.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/sys/arch/xen/include/xenbus.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/xen/xenbus/xenbus_probe.c

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