]> git.ipfire.org Git - thirdparty/linux.git/commit
net: document NETDEV_CHANGENAME as ops locked
authorJakub Kicinski <kuba@kernel.org>
Wed, 3 Jun 2026 01:28:32 +0000 (18:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Jun 2026 21:04:55 +0000 (14:04 -0700)
commitb8dfa196cb978815543a36bbdd077f4a161e160d
tree9996b1572bc2f89a3ad7003f1b5c44be6424a74e
parent1d3964e29e53b02a7c61ed6d6e4aeccba3275ebc
net: document NETDEV_CHANGENAME as ops locked

NETDEV_CHANGENAME is only emitted from netif_change_name().
netif_change_name() has two callers both of which hold netdev_lock_ops()
around the call site:
 - dev_change_name()
 - do_setlink()

Document NETDEV_CHANGENAME as always ops locked.

Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20260603012840.2254293-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/netdevices.rst
net/core/lock_debug.c