Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2011 11:26:15 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        FreeBSD-Current <freebsd-current@freebsd.org>
Subject:   Re: Reprobing of devices after module load?
Message-ID:  <201111211126.15627.jhb@freebsd.org>
In-Reply-To: <CAPYw7P6nqLmdRqa2Szntnac5pc3otf75cfGkCvVz1FoazssU%2Bg@mail.gmail.com>
References:  <CAPYw7P6nqLmdRqa2Szntnac5pc3otf75cfGkCvVz1FoazssU%2Bg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, November 18, 2011 11:48:20 am Paul B. Mahol wrote:
> Hi,
> 
> Is there nice way in FreeBSD to force reprobe of devices for specific
> driver like it is done when kernel module is loaded (via
> DRIVER_MODULE(...) stuff)?

Note that those probes happen for specific buses rather than for specific 
drivers.  The routine that does this currently is static 
(devclass_driver_added() in sys/kern/subr_bus.c).  What specific problem are 
you trying to solve?  You might be able to use BUS_DRIVER_ADDED() or 
device_probe_and_attach() to achieve what you are trying to do.

-- 
John Baldwin



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