Skip to content

Commit

Permalink
ethtool: Expand documentation of struct ethtool_perm_addr
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
bwhacks authored and davem330 committed Feb 12, 2014
1 parent 5909122 commit f432c09
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion include/uapi/linux/ethtool.h
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,19 @@ struct ethtool_stats {
__u64 data[0];
};

/**
* struct ethtool_perm_addr - permanent hardware address
* @cmd: Command number = %ETHTOOL_GPERMADDR
* @size: On entry, the size of the buffer. On return, the size of the
* address. The command fails if the buffer is too small.
* @data: Buffer for the address
*
* Users must allocate the buffer immediately following this structure.
* A buffer size of %MAX_ADDR_LEN should be sufficient for any address
* type.
*/
struct ethtool_perm_addr {
__u32 cmd; /* ETHTOOL_GPERMADDR */
__u32 cmd;
__u32 size;
__u8 data[0];
};
Expand Down

0 comments on commit f432c09

Please sign in to comment.