Read the whole thread, 25 messages PreviousNext Re: [RFC PATCH net-next v2 04/10] net: sfp: Add helper to return the SFP bus name FromAndrew Lunn <andrew@lunn.ch> Date2023-11-21 01:01:04 Also inlinux-arm-kernel, lkmlReply toMaxime Chevallier, 2023-11-17 quoted hunk ↗ jump to hunk+const char *sfp_get_name(struct sfp_bus *bus) +{ + if (bus->sfp_dev) + return dev_name(bus->sfp_dev); + + return NULL; +} Locking? Do you assume rtnl? Does this function need to take rtnl? Andrew
Keyboard shortcuts hback out one level jnext message in thread / next series-diff position kprevious message in thread / previous series-diff position ldrill in Escclose help / fold thread tree ?toggle this help