.. | .. |
---|
1 | | -// SPDX-License-Identifier: GPL-2.0+ |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0+ */ |
---|
2 | 2 | /* |
---|
3 | 3 | * u_ether.h -- interface to USB gadget "ethernet link" utilities |
---|
4 | 4 | * |
---|
.. | .. |
---|
244 | 244 | */ |
---|
245 | 245 | int gether_get_ifname(struct net_device *net, char *name, int len); |
---|
246 | 246 | |
---|
| 247 | +/** |
---|
| 248 | + * gether_set_ifname - set an ethernet-over-usb link interface name |
---|
| 249 | + * @net: device representing this link |
---|
| 250 | + * @name: new interface name |
---|
| 251 | + * @len: length of @name |
---|
| 252 | + * |
---|
| 253 | + * This sets the interface name of this ethernet-over-usb link. |
---|
| 254 | + * A single terminating newline, if any, is ignored. |
---|
| 255 | + * Returns zero on success, else negative errno. |
---|
| 256 | + */ |
---|
| 257 | +int gether_set_ifname(struct net_device *net, const char *name, int len); |
---|
| 258 | + |
---|
247 | 259 | void gether_cleanup(struct eth_dev *dev); |
---|
248 | 260 | |
---|
249 | 261 | /* connect/disconnect is handled by individual functions */ |
---|