ethtool_ioctl_needs_rtnl(9)
π NAME π
okay bestie, welcome to the Kernel API Manual π. This one is ethtool_ioctl_needs_rtnl β does this legacy ioctl cmd need rtnl_lock? That's literally the whole question, no cap.
β¨ SYNOPSIS β¨
bool ethtool_ioctl_needs_rtnl (const struct net_device *dev , u32 ethcmd
);
π¦ ARGUMENTS π¦
devβ target device. The device in question, the main character here.ethcmdβETHTOOL_*ioctl command value. The command code you're checking.
πΈ RETURN πΈ
It returns true if ethcmd is a command for which dev has opted-in to keeping rtnl_lock held across the call (via op_needs_rtnl). Yep, that's the exact condition β no extra lore.
π SEE ALSO π
- Kernel file
./net/ethtool/common.h ethtool_nl_msg_needs_rtnl(9)
xoxo, from ./net/ethtool β October 2026 π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms