Date: Sat, 2 Jul 2005 20:39:30 +0800 From: kylin <fierykylin@gmail.com> To: freebsd-questions@freebsd.org Subject: polystate in freebsd Message-ID: <87ab37ab0507020539474237b9@mail.gmail.com>
index | next in thread | raw e-mail
result = DEVICE_PROBE(child);
hereif child is a nexus device ,then like polystate in OOP,it will
call nexus's DEVMETHOD :nexus_probe,
it is really great:)
nexus_probe
in device_probe_child(device_t dev, device_t child) in subr_bus.c
static device_method_t nexus_methods[] = {
DEVMETHOD(device_probe, nexus_probe),
In nexus.c
--
we who r about to die,salute u!
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87ab37ab0507020539474237b9>
