From owner-freebsd-questions@FreeBSD.ORG Sat Jul 2 12:39:31 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AD9916A41C for ; Sat, 2 Jul 2005 12:39:31 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 153C343D1F for ; Sat, 2 Jul 2005 12:39:30 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by zproxy.gmail.com with SMTP id z6so255155nzd for ; Sat, 02 Jul 2005 05:39:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fKYluSxcyz7ekqveh4ud19pG12c0KBYRAhMZ0mXoUmht6PhNdFlyybdkPj/2ZV+2exWNn9wGR968PdoYVFs0TDrsfhmS/z5T6AzSwFwxgQNW7a0Z4Idm3PgdsyRG9hbJhuxtm8ya5nVsjHHrDCUW/FJHQGvKyU5MHH6Z+l5meyM= Received: by 10.36.43.4 with SMTP id q4mr1003112nzq; Sat, 02 Jul 2005 05:39:30 -0700 (PDT) Received: by 10.36.104.10 with HTTP; Sat, 2 Jul 2005 05:39:30 -0700 (PDT) Message-ID: <87ab37ab0507020539474237b9@mail.gmail.com> Date: Sat, 2 Jul 2005 20:39:30 +0800 From: kylin To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: polystate in freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kylin List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2005 12:39:31 -0000 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!