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 Hi Everybody, I am a jackaroo to FreeBSD kernel. I have a question about how the kernel add all devices. For example, in NetBSD, I can find the code in /sys/kern/init_main.c: /* Attach pseudo-devices. */ for (pdev = pdevinit; pdev->pdev_attach != NULL; pdev++) (*pdev->pdev_attach)(pdev->pdev_count); I know the NetBSD kernel add devices(such as storage device and network device) by them. But in FreeBSD, I can not locate the place. which part code should I read? Thank you. Best Regards Ouyang KaiGet more from the Web. FREE MSN Explorer download : http://explorer.msn.com
Hi Everybody,
  I am a jackaroo to FreeBSD kernel. I have a question about how the kernel add all devices. 
  For example, in NetBSD, I can find the code in /sys/kern/init_main.c:
 /* Attach pseudo-devices. */
for (pdev = pdevinit; pdev->pdev_attach != NULL; pdev++)
              (*pdev->pdev_attach)(pdev->pdev_count);
I know the NetBSD kernel add devices(such as storage device and network device) by them.
But in FreeBSD, I can not locate the place.
which part code should I read?
Thank you.
 
Best Regards
  Ouyang Kai
 
 


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