lkml.org 
[lkml]   [2023]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH net-next v2 04/10] net: sfp: Add helper to return the SFP bus name
> +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

\
 
 \ /
  Last update: 2023-11-21 02:01    [W:0.071 / U:2.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site