HomeFreeBSD

if_clone: Make ifnet_detach_sxlock opaque to consumers

Description

if_clone: Make ifnet_detach_sxlock opaque to consumers

The change e133271fc1b5e introduced ifnet_detach_sxlock, and change
6d2a10d96fb5 widened its coverage, but there are still consumers,
net80211 and tuntap e.g., want it. Instead of sprinkling it everywhere,
make it opaque to consumers.

Out of tree drivers shall also benefit from this change.

Reviewed by: kp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D56298

(cherry picked from commit e9fc0c538264355bd3fd9120c650078281c2a290)

Details

Provenance
zleiAuthored on Apr 13 2026, 4:38 AM
Reviewer
kp
Differential Revision
D56298: if_clone: Make ifnet_detach_sxlock opaque to consumers
Parents
rG477c3ba36731: ifnet: Move SIOCSIFVNET from ifhwioctl() to ifioctl()
Branches
Unknown
Tags
Unknown