Searched refs:to_target (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.1/drivers/net/ |
D | netconsole.c | 236 static struct netconsole_target *to_target(struct config_item *item) in to_target() function 249 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show() 254 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->extended); in extended_show() 259 return snprintf(buf, PAGE_SIZE, "%s\n", to_target(item)->np.dev_name); in dev_name_show() 264 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.local_port); in local_port_show() 269 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.remote_port); in remote_port_show() 274 struct netconsole_target *nt = to_target(item); in local_ip_show() 284 struct netconsole_target *nt = to_target(item); in remote_ip_show() 294 struct net_device *dev = to_target(item)->np.dev; in local_mac_show() 302 return snprintf(buf, PAGE_SIZE, "%pM\n", to_target(item)->np.remote_mac); in remote_mac_show() [all …]
|