* Louis Gerbarg <[EMAIL PROTECTED]> [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 - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to