[PATCH v4 0/6] MR78: NSI and GetAdaptersInfo() performance improvements
Chip Davis (@cdavis5e)
wine at gitlab.winehq.org
Tue May 17 20:23:07 CDT 2022
On Tue May 17 08:19:21 2022 +0000, Huw Davies wrote:
> Actually, we don't de-populate the list on interface removals, so this
> should be ok. I'll take another look.
> (and figure out if there's an equivalent we could do on macOS)
System event sockets (`PF_SYSTEM`, `SYSPROTO_EVENT`) are what you want here. They have the ability to notify the caller when an interface appears (`KEV_DL_IF_ATTACHED`), when it is about to disappear (`KEV_DL_IF_DETACHING`), and when it has vanished (`KEV_DL_IF_DETACHED`).
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/78#note_966
More information about the wine-devel
mailing list