From owner-freebsd-hackers Tue Apr 14 16:01:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA10579 for freebsd-hackers-outgoing; Tue, 14 Apr 1998 16:01:35 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA10425 for ; Tue, 14 Apr 1998 23:01:05 GMT (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id PAA01312; Tue, 14 Apr 1998 15:58:19 -0700 (PDT) Message-Id: <199804142258.PAA01312@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Jeffrey C. Becker" cc: hackers@FreeBSD.ORG Subject: Re: Device driver porting questions In-reply-to: Your message of "Mon, 13 Apr 1998 16:49:50 PDT." <199804132349.QAA28294@miles.nas.nasa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 14 Apr 1998 15:58:18 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi. I'm trying to port the memory disk driver from NetBSD. Basically, I'm > following what was done for the ccd driver port, but it would be really handy > to have an explanation of how driver autoconfig worked, e.g., what does the > PSEUDO_SET linker magic do? Any input appreciated. Thanks. It provides functionality similar to linker sets for LKMs. I'm not sure this actually answers your original question though. The 'vn' driver is a good place to look for a succinct example of driver autoconfig; basically everything interesting happens at the bottom of the file in vn_drvinit() and the SYSINIT() below. > P.S. The device driver writers tutorial guide was not much help here No. Until somone who understands this and has time to write about it does so, it won't. 8( -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message