[RFC PATCH net-next v2 04/10] net: sfp: Add helper to return the SFP bus name

Andrew Lunn andrew at lunn.ch
Mon Nov 20 17:00:58 PST 2023


> +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



More information about the linux-arm-kernel mailing list