aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_api.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-03-24 22:45:30 +0000
committerJakub Kicinski <[email protected]>2025-03-25 17:06:44 +0000
commit4b702f8b72c7b05daa1b763fdc0840aa78178c3a (patch)
tree51dec262188c65f5bcd29af24fbeb30f41a5b15d /net/core/dev_api.c
parentnet: constify dev pointer in misc instance lock helpers (diff)
downloadkernel-4b702f8b72c7b05daa1b763fdc0840aa78178c3a.tar.gz
kernel-4b702f8b72c7b05daa1b763fdc0840aa78178c3a.zip
net: explain "protection types" for the instance lock
Try to define some terminology for which fields are protected by which lock and how. Some fields are protected by both rtnl_lock and instance lock which is hard to talk about without having a "key phrase" to refer to a particular protection scheme. "ops protected" fields are defined later in the series, one by one. Add ASSERT_RTNL() to netdev_ops_assert_locked() for drivers not other instance protection of ops. Hopefully it's not too confusion that netdev_lock_ops() does not match the lock which netdev_ops_assert_locked() will assert, exactly. The noun "ops" is in a different place in the name, so I think it's acceptable... Acked-by: Stanislav Fomichev <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions