Page MenuHomeFreeBSD

linux: require vnet(9) context in ifname_bsd_to_linux_name()
ClosedPublic

Authored by glebius on Mar 2 2024, 6:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 9, 7:37 PM
Unknown Object (File)
Dec 18 2024, 2:36 AM
Unknown Object (File)
Dec 8 2024, 11:07 PM
Unknown Object (File)
Nov 24 2024, 9:00 PM
Unknown Object (File)
Nov 24 2024, 2:25 AM
Unknown Object (File)
Nov 21 2024, 4:53 PM
Unknown Object (File)
Nov 20 2024, 4:06 PM
Unknown Object (File)
Nov 14 2024, 3:26 PM
Subscribers

Details

Summary

This function is used by netlink(9) only. The netlink(9) taskqueue thread
runs in the vnet of the socket whose request the thread is processing
right now. This is a correct vnet and resetting it to vnet0 is incorrect.
If the function is to be used by any other caller in addition to
netlink(9), it would be caller's responsiblity to provide correct vnet(9).

PR: 277286

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable