Thread (8 messages) 8 messages, 2 authors, 2023-10-28

Re: [PATCH net-next v3 1/3] ethtool: Implement ethtool_puts()

From: Justin Stitt <justinstitt@google.com>
Date: 2023-10-28 01:20:31
Also in: bpf, intel-wired-lan, linux-mediatek, lkml, netdev

On Fri, Oct 27, 2023 at 4:43 PM Andrew Lunn [off-list ref] wrote:
quoted
+/**
+ * ethtool_puts - Write string to ethtool string data
+ * @data: Pointer to start of string to update
Isn't it actually a pointer to a pointer to the start of string to
update?
I suppose.

FWIW, I just copy-pasted the sprintf doc and tweaked:
/**
 * ethtool_sprintf - Write formatted string to ethtool string data
 * @data: Pointer to start of string to update
 * @fmt: Format of string to write
 *
 * Write formatted string to data. Update data to point at start of
 * next string.
 */

quoted
+extern void ethtool_puts(u8 **data, const char *str);
        Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help