diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2020-12-25 12:59:54 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2020-12-25 12:59:54 +0000 |
commit | 0ddae2e43bde351e699797b713fdfd0c4d71688b (patch) | |
tree | 5c305222f703a8c48618339303894fe5bf0e271e /sys/dev/usb/uticom.c | |
parent | d5d6ba970dd241df83e52a3f686a5b3c47e2b215 (diff) |
Refactor klist insertion and removal
Rename klist_{insert,remove}() to klist_{insert,remove}_locked().
These functions assume that the caller has locked the klist. The current
state of locking remains intact because the kernel lock is still used
with all klists.
Add new functions klist_insert() and klist_remove() that lock the klist
internally. This allows some code simplification.
OK mpi@
Diffstat (limited to 'sys/dev/usb/uticom.c')
0 files changed, 0 insertions, 0 deletions