Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Apr 1998 15:58:18 -0700
From:      Mike Smith <mike@smith.net.au>
To:        "Jeffrey C. Becker" <becker@nas.nasa.gov>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Device driver porting questions 
Message-ID:  <199804142258.PAA01312@dingo.cdrom.com>
In-Reply-To: Your message of "Mon, 13 Apr 1998 16:49:50 PDT." <199804132349.QAA28294@miles.nas.nasa.gov> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804142258.PAA01312>