From owner-freebsd-hackers Mon Aug 12 1:32:44 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86C1637B400 for ; Mon, 12 Aug 2002 01:32:40 -0700 (PDT) Received: from hotmail.com (oe97.pav0.hotmail.com [64.4.33.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 233D743E42 for ; Mon, 12 Aug 2002 01:32:40 -0700 (PDT) (envelope-from oykai@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 12 Aug 2002 01:32:40 -0700 X-Originating-IP: [210.12.61.105] From: "ouyang kai" To: Date: Mon, 12 Aug 2002 16:32:27 +0800 MIME-Version: 1.0 X-Mailer: MSN Explorer 6.10.0016.1624 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0000_01C2421D.D87200F0" Message-ID: X-OriginalArrivalTime: 12 Aug 2002 08:32:40.0039 (UTC) FILETIME=[D1EC3770:01C241DA] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ------=_NextPart_001_0000_01C2421D.D87200F0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hi Everybody, I am a jackaroo to FreeBSD kernel. I have a question about how the kern= el add all devices. =20 For example, in NetBSD, I can find the code in /sys/kern/init_main.c: /* Attach pseudo-devices. */ for (pdev =3D pdevinit; pdev->pdev_attach !=3D NULL; pdev++) (*pdev->pdev_attach)(pdev->pdev_count); I know the NetBSD kernel add devices(such as storage device and network d= evice) by them. But in FreeBSD, I can not locate the place. which part code should I read? Thank you. =20 Best Regards Ouyang KaiGet more from the Web. FREE MSN Explorer download : http://e= xplorer.msn.com ------=_NextPart_001_0000_01C2421D.D87200F0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Hi Everybody,

  I am a jackaroo to FreeBSD kernel. I have a question about how the kerne= l add all devices.

  For example= , in NetBSD, I can find the code in /sys/kern/init_main.c:<= /SPAN>

 /* Attach pseudo-devices. */<= /FONT>

for (pdev =3D pdevinit; pdev->pdev_attach !=3D NULL; pdev++)

              <= /SPAN>(*pdev->pdev_attach)(pdev->pdev_count);<= /P>

I know the NetBSD kernel add dev= ices(such as storage device and network device) by them.

<= FONT face=3D"Times New Roman" size=3D3>But in FreeBSD, I can not locate t= he place.

which pa= rt code should I read?

Thank you.

 

  Ouyang Kai



Get more fr= om the Web. FREE MSN Explorer download : http://explorer.msn.com

------=_NextPart_001_0000_01C2421D.D87200F0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message