Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 May 1998 22:07:19 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Chuck Robey <chuckr@glue.umd.edu>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: devices 
Message-ID:  <199805250507.WAA10353@antipodes.cdrom.com>
In-Reply-To: Your message of "Sun, 24 May 1998 23:14:21 EDT." <Pine.BSF.3.96.980524231249.20133Y-100000@localhost> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Does anyone know how a device gets itself in the list to be probed?  I
> know how a device file gets into the kernel, and I see the probe
> function, but I don't see what calls all the probe functions.

The specifics depend on the device; for ISA/EISA/PCI/ppbus you use a
DATA_SET declaration to make your <bus>_device structure visible.
Pseudo-devices use a SYSINIT to call their establishment functions at
the appropriate time.

-- 
\\  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?199805250507.WAA10353>