diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-11-20 12:27:43 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-11-20 12:27:43 +0000 |
commit | e313fe8c34e2271b9c57faee82709bbf4ee4d3ae (patch) | |
tree | b1aaa9c7da74a936945c9489dfe91c45b0bf4fdf /sys/ddb/db_trap.c | |
parent | 199b9779529613a990e581d0e32fe8e1c014f051 (diff) |
Keep if_ref() private, if_get() is what you want to use before if_put().
The thread detaching an interface will sleep until all references to this
interface have been released. So we decided to only keep references for
a short period of time.
Keeping if_ref() private will hopefully help preserve this goal as long
as it makes sense.
Calling if_get()/if_put() in the same function also allows us to make
use of static analysis tools (thanks jsg@!) to catch our errors.
ok dlg@
Diffstat (limited to 'sys/ddb/db_trap.c')
0 files changed, 0 insertions, 0 deletions