Skip site navigation (1)Skip section navigation (2)
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>

next in thread | raw e-mail | index | archive | help
result =3D DEVICE_PROBE(child);=20
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[] =3D {
DEVMETHOD(device_probe,         nexus_probe),
In nexus.c


--=20
we who r about to die,salute u!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87ab37ab0507020539474237b9>