Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2000 22:53:32 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Louis Gerbarg <gerbal@rpi.edu>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: A few device questions
Message-ID:  <20000823225331.X4854@fw.wintelcom.net>
In-Reply-To: <Pine.A41.3.96.1000824011035.91774B-100000@vcmr-19.rcs.rpi.edu>; from gerbal@rpi.edu on Thu, Aug 24, 2000 at 01:48:32AM -0400
References:  <Pine.A41.3.96.1000824011035.91774B-100000@vcmr-19.rcs.rpi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
* Louis Gerbarg <gerbal@rpi.edu> [000823 22:48] wrote:
> 
> The mem driver does not seem to have an attach call. To hack around that
> on darwin I used a static variable initialized to 0, and then put a test
> for it in the open call. If it is zero it runs my attach routine and sets
> the variable to 1. Is there a better way to do this in the FreeBSD mem
> driver?

Yes, have a look at src/sys/netinet/accf_http.c particularly the
DECLARE_MODULE macro, this allows one to declare routines to be
run at the time when modload or boot happens.

Sorry I can't answer your other questions, I try to avoid entropy.
:)

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


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?20000823225331.X4854>