disallow unload until we do proper refcounting

This commit is contained in:
Alfred Perlstein 2000-07-20 12:12:41 +00:00
parent 6c96813482
commit 85f5e7f098
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63645
2 changed files with 18 additions and 0 deletions

View File

@ -115,9 +115,18 @@ accept_filt_generic_mod_event(module_t mod, int event, void *data)
break;
case MOD_UNLOAD:
/*
* Do not support unloading yet. we don't keep track of refcounts
* and unloading an accept filter callback and then having it called
* is a bad thing. A simple fix would be to track the refcount
* in the struct accept_filter.
*/
#if 0
s = splnet();
error = accept_filt_del(accfp->accf_name);
splx(s);
#endif
error = EOPNOTSUPP;
break;
case MOD_SHUTDOWN:

View File

@ -115,9 +115,18 @@ accept_filt_generic_mod_event(module_t mod, int event, void *data)
break;
case MOD_UNLOAD:
/*
* Do not support unloading yet. we don't keep track of refcounts
* and unloading an accept filter callback and then having it called
* is a bad thing. A simple fix would be to track the refcount
* in the struct accept_filter.
*/
#if 0
s = splnet();
error = accept_filt_del(accfp->accf_name);
splx(s);
#endif
error = EOPNOTSUPP;
break;
case MOD_SHUTDOWN: