opnsense-src/sys/dev
Poul-Henning Kamp 65a311fcb2 Give kldunload a -f(orce) argument.
Add a MOD_QUIESCE event for modules.  This should return error (EBUSY)
of the module is in use.

MOD_UNLOAD should now only fail if it is impossible (as opposed to
inconvenient) to unload the module.  Valid reasons are memory references
into the module which cannot be tracked down and eliminated.

When kldunloading, we abandon if MOD_UNLOAD fails, and if -force is
not given, MOD_QUIESCE failing will also prevent the unload.

For backwards compatibility, we treat EOPNOTSUPP from MOD_QUIESCE as
success.

Document that modules should return EOPNOTSUPP for unknown events.
2004-07-13 19:36:59 +00:00
..
aac Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
acpi_support Update for acpi_id_probe() 2004-06-29 19:05:20 +00:00
acpica Clean up our pnpinfo and location strings. 2004-07-13 18:59:49 +00:00
adlink Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
advansys Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
agp Add support for the VIA Apollo KT400/400A/600 AGP host bridges which use 2004-07-02 03:39:33 +00:00
aha Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
ahb Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
aic Fix disordering of pccarddevs.h noticed by bde. Also remove a few 2004-05-27 03:49:45 +00:00
aic7xxx Remove erroneous semicolons. 2004-07-13 16:06:19 +00:00
amd Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
amr Use a separate flag when doing a kernel coredump when polling for 2004-07-01 06:56:10 +00:00
an While setting up a transmit packet disable interupts on the card then 2004-06-17 02:19:11 +00:00
ar Convert Netgraph to use mbuf tags to pass its meta information around. 2004-06-25 19:22:05 +00:00
arl Remove extra semicolon. 2004-06-02 18:03:07 +00:00
asr Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
ata Attempt to handle suspend/resume better. 2004-07-12 10:50:50 +00:00
ath use correct malloc type to allocate struct ieee80211_node's 2004-04-05 04:42:42 +00:00
atkbdc Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
awi Link ALTQ to the build and break with ABI for struct ifnet. Please recompile 2004-06-13 17:29:10 +00:00
bfe Bring in the first chunk of altq driver modifications. This covers the 2004-07-02 12:16:02 +00:00
bge Add some special case code to fix a problem with the BCM5704 in TBI (fiber) 2004-06-09 16:01:59 +00:00
bktr Fix a tuner problem. 2004-06-27 09:59:02 +00:00
buslogic Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
cardbus MFp4: 2004-06-27 13:07:02 +00:00
ciss Reset the update flag when scanning for new devices. 2004-06-22 23:05:06 +00:00
cm Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
cnw We don't need to initialize if_output, ether_ifattach() does it 2004-05-23 16:11:53 +00:00
cp Convert Netgraph to use mbuf tags to pass its meta information around. 2004-06-25 19:22:05 +00:00
cs Fix disordering of pccarddevs.h noticed by bde. Also remove a few 2004-05-27 03:49:45 +00:00
ct Update for the KDB framework: 2004-07-10 20:57:43 +00:00
ctau Convert Netgraph to use mbuf tags to pass its meta information around. 2004-06-25 19:22:05 +00:00
cx Introduce ttygone() which indicates that the hardware is detached. 2004-07-11 15:18:39 +00:00
cy Introduce ttygone() which indicates that the hardware is detached. 2004-07-11 15:18:39 +00:00
dc Whitespace nits 2004-07-05 22:35:18 +00:00
dcons Re-enable debugger port. 2004-07-13 09:41:45 +00:00
de Apply the long-overdue hatchet of style(9) death to this file. 2004-07-09 02:19:07 +00:00
dec Use __FBSDID(). 2003-08-24 17:55:58 +00:00
digi Give kldunload a -f(orce) argument. 2004-07-13 19:36:59 +00:00
dpt Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
drm Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
ed A couple more style(9) nits I should have included in last commit 2004-06-18 01:28:54 +00:00
eisa When adding files to the repo, it is very important to not forget 2004-06-09 16:56:22 +00:00
em Bring in the first chunk of altq driver modifications. This covers the 2004-07-02 12:16:02 +00:00
en Update for the KDB framework: 2004-07-10 21:03:52 +00:00
ep Fix disordering of pccarddevs.h noticed by bde. Also remove a few 2004-05-27 03:49:45 +00:00
esp Include module.h 2004-06-21 07:27:34 +00:00
ex another format nit 2004-06-28 16:38:53 +00:00
exca Card type stuff was backwards, so assume io for the moment. mem needs 2003-10-07 04:29:04 +00:00
fatm Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
fb - Add missing <sys/module.h>. [1] 2004-07-09 23:12:22 +00:00
fdc Set fdc_dev in attach 2004-07-13 02:44:40 +00:00
fe Replace handrolled CRC calculation with ether_crc32_[lb]e(). 2004-06-09 14:34:04 +00:00
firewire Trim a few things from the dmesg output and stick them under bootverbose to 2004-07-01 07:46:29 +00:00
fxp Bring in the first chunk of altq driver modifications. This covers the 2004-07-02 12:16:02 +00:00
gem - Remove a variable no longer used after the conversion to ether_crc32_le(). 2004-06-10 00:04:16 +00:00
gfb Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
gx Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
harp Make sure that the first mbuf in the chain passed to atm_intr 2004-02-21 13:01:54 +00:00
hatm Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
hfa Delete an unused file which no longer compiles anyway. 2004-04-20 15:33:24 +00:00
hifn Consistently use __inline instead of __inline__ as the former is an empty macro 2004-07-04 16:11:03 +00:00
hme Back out 1.23 until I figure out why it causes Netra t1 100 to no longer 2004-06-12 02:23:06 +00:00
ic Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
ichsmb Add PCI Device ID for 6300ESB ICH. If allocating 16 bytes fails then try 32. 2004-06-24 18:21:28 +00:00
ichwd make code less broken, only try to create unit 0 since there can only 2004-06-13 05:00:19 +00:00
ida Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
idt Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
ie Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
if_ndis Make NdisReadPcmciaAttributeMemory() and NdisWritePcmciaAttributeMemory() 2004-07-11 00:19:30 +00:00
iicbus Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
iir Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
ips Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
isp Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
ispfw Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
ixgb PR kern/68474: 2004-07-01 22:37:47 +00:00
joy Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
kbd Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
led Remove a pointless check. 2004-07-10 15:38:27 +00:00
lge Remove the setting of the pci config variables on power state changes. 2004-06-28 20:26:21 +00:00
lnc Bring in the first chunk of altq driver modifications. This covers the 2004-07-02 12:16:02 +00:00
matcd Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
mc146818 Add missing $FreeBSD$ 2000-05-01 19:54:26 +00:00
mca Use __FBSDID(). 2003-08-24 17:55:58 +00:00
mcd Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
md Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
mii Add some missing <sys/module.h> includes which are masked by the 2004-05-30 17:57:46 +00:00
mk48txx Use __FBSDID(). 2003-08-24 17:55:58 +00:00
mlx Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
mly Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
mpt Remove erroneous semicolons. 2004-07-13 16:06:19 +00:00
mse Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
musycc Switch to using C99 sparse initialisers for the type methods array. 2004-05-29 00:51:19 +00:00
my Replace handrolled CRC calculation with ether_crc32_[lb]e(). 2004-06-09 14:34:04 +00:00
ncv Update for the KDB framework: 2004-07-10 21:05:14 +00:00
nge Remove the setting of the pci config variables on power state changes. 2004-06-28 20:26:21 +00:00
nmdm Add modemcontrol support for DTR and DCD. 2004-07-04 16:27:58 +00:00
nsp Update for the KDB framework: 2004-07-10 21:06:08 +00:00
null Micro-tweaking. 2004-06-20 13:50:50 +00:00
ofw Update for the KDB framework: 2004-07-10 21:07:44 +00:00
owi Move to generating pccarddevs.h on the fly, both for the kernel and 2004-05-26 00:53:10 +00:00
patm Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
pccard Don't nest includes here. There's no need and the subset included is lame. 2004-05-28 02:24:07 +00:00
pccbb Improve the kludge assignment of sub-bus numbers a little by fixing an 2004-06-23 13:49:46 +00:00
pcf Consistently use __inline instead of __inline__ as the former is an empty macro 2004-07-04 16:11:03 +00:00
pci Disable native ata support for now, too much breaks 2004-07-02 13:42:36 +00:00
pcic Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
pdq Link ALTQ to the build and break with ABI for struct ifnet. Please recompile 2004-06-13 17:29:10 +00:00
ppbus Do not bzero() the softc, as newbus does it for us. 2004-07-09 16:56:46 +00:00
ppc Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
pst Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
puc Remove duplicate FreeBSD id 2004-07-01 17:23:49 +00:00
random Trim a few things from the dmesg output and stick them under bootverbose to 2004-07-01 07:46:29 +00:00
ray Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
rc Introduce ttygone() which indicates that the hardware is detached. 2004-07-11 15:18:39 +00:00
re Eliminate unneeded return keywords. 2004-07-06 02:48:29 +00:00
rndtest Use __FBSDID(). 2003-08-24 17:55:58 +00:00
rp Introduce ttygone() which indicates that the hardware is detached. 2004-07-11 15:18:39 +00:00
sab Update for the KDB framework: 2004-07-10 21:09:47 +00:00
safe Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
sbni We don't need to initialize if_output, ether_ifattach() does it 2004-05-23 16:11:53 +00:00
sbsh Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
scd Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
sf Whitespace nit 2004-07-05 22:52:01 +00:00
si Introduce ttygone() which indicates that the hardware is detached. 2004-07-11 15:18:39 +00:00
sio Introduce ttygone() which indicates that the hardware is detached. 2004-07-11 15:18:39 +00:00
sk Remove burn bridges code that saved/restored the pci config registers 2004-06-28 20:07:03 +00:00
smbus Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
sn Replace handrolled CRC calculation with ether_crc32_[lb]e(). 2004-06-09 14:34:04 +00:00
snc We don't need to initialize if_output, ether_ifattach() does it 2004-05-23 16:11:53 +00:00
snp Second half of the dev_t cleanup. 2004-06-17 17:16:53 +00:00
sound Remove DDB. The one user of this macro has been changed to use BVDDB. 2004-07-10 21:13:28 +00:00
speaker Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
sr Convert Netgraph to use mbuf tags to pass its meta information around. 2004-06-25 19:22:05 +00:00
stg Update for the KDB framework: 2004-07-10 21:14:20 +00:00
streams Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
sx Introduce ttygone() which indicates that the hardware is detached. 2004-07-11 15:18:39 +00:00
sym Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
syscons Remove erroneous semicolons. 2004-07-13 16:06:19 +00:00
tdfx Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
tga Add missing <sys/module.h> includes currently relying on nested include 2004-06-03 06:10:02 +00:00
ti Whitespace pass. 2004-07-05 22:46:28 +00:00
trm Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
twa Fix a typo that made the busdma tag have a 0 highaddr. This driver heavily 2004-06-24 18:30:08 +00:00
twe Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
tx Replace handrolled CRC calculation with ether_crc32_[lb]e(). 2004-06-09 14:34:04 +00:00
txp Remove the setting of the pci config variables on power state changes. 2004-06-28 20:26:21 +00:00
uart Update for the KDB framework: 2004-07-10 21:16:01 +00:00
ubsec Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
usb Remove even more references to generating usbdevs_data.h, et al. 2004-07-12 23:11:09 +00:00
utopia Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
vinum Update for the KDB framework: 2004-07-10 21:21:13 +00:00
vr Further locking improvements for vr(4): 2004-07-09 00:17:14 +00:00
vx Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
watchdog Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
wds Use __FBSDID(). 2003-08-24 17:55:58 +00:00
wi Link ALTQ to the build and break with ABI for struct ifnet. Please recompile 2004-06-13 17:29:10 +00:00
wl Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
xe MFp4: 2004-06-27 13:25:28 +00:00
zs Update for the KDB framework: 2004-07-10 21:18:33 +00:00