hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/usb/gadget/function/u_ether.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0+
1
+/* SPDX-License-Identifier: GPL-2.0+ */
22 /*
33 * u_ether.h -- interface to USB gadget "ethernet link" utilities
44 *
....@@ -244,6 +244,18 @@
244244 */
245245 int gether_get_ifname(struct net_device *net, char *name, int len);
246246
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
+
247259 void gether_cleanup(struct eth_dev *dev);
248260
249261 /* connect/disconnect is handled by individual functions */