From owner-freebsd-hackers Mon Aug 12 1:35:35 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 9EFA137B400 for ; Mon, 12 Aug 2002 01:35:32 -0700 (PDT) Received: from hotmail.com (oe60.pav0.hotmail.com [64.4.33.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 642E743E42 for ; Mon, 12 Aug 2002 01:35:32 -0700 (PDT) (envelope-from oykai@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 12 Aug 2002 01:35:32 -0700 X-Originating-IP: [210.12.61.105] From: "ouyang kai" To: Subject: Hi, how the kernel add the devices Date: Mon, 12 Aug 2002 16:35:23 +0800 MIME-Version: 1.0 X-Mailer: MSN Explorer 6.10.0016.1624 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0001_01C2421E.413F6140" Message-ID: X-OriginalArrivalTime: 12 Aug 2002 08:35:32.0231 (UTC) FILETIME=[388EA170:01C241DB] 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_0001_01C2421E.413F6140 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_0001_01C2421E.413F6140 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
Hi Everybody,<= BR>  I am a jackaroo to FreeBSD kernel. I have a question about how = the kernel add all devices. 
  For example, in NetBSD, I ca= n find the code in /sys/kern/init_main.c:
 /* Attach pseudo-devic= es. */
for (pdev =3D pdevinit; pdev->pdev_attach !=3D NULL; pdev++)=
           &nb= sp;  (*pdev->pdev_attach)(pdev->pdev_count);
I know the Net= BSD kernel add devices(such as storage device and network device) by them= .
But in FreeBSD, I can not locate the place.
which part code shoul= d I read?
Thank you.
 
Best Regards
  Ouyang Kai
 
 

Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com

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