ifconfig(8) -C is the only user in base and the if_clone_attach() comment
explains how this list is being built during autoconf(9).
After that it is only ever read. Multiple threads may traverse the list in
parallel and reading the `int' count is atomic.
OK mvs
-/* $OpenBSD: if.c,v 1.668 2022/11/08 17:57:14 kn Exp $ */
+/* $OpenBSD: if.c,v 1.669 2022/11/08 17:57:47 kn Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
KERNEL_UNLOCK();
return (error);
case SIOCIFGCLONERS:
- KERNEL_LOCK();
error = if_clone_list((struct if_clonereq *)data);
- KERNEL_UNLOCK();
return (error);
case SIOCGIFGMEMB:
KERNEL_LOCK();