diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2014-02-12 17:14:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-12 17:33:03 -0500 |
commit | f432c095f78cd77df049bd0a8322e91ed6d3c59a (patch) | |
tree | afb3c0d925ac843fe702b3f8836efe3dc0700021 | |
parent | 590912298c2d7d9d69c87d93af1f2f8b365f1e04 (diff) |
ethtool: Expand documentation of struct ethtool_perm_addr
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/uapi/linux/ethtool.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index e96aec0bf7c1..79be416f03e6 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
@@ -614,8 +614,19 @@ struct ethtool_stats { | |||
614 | __u64 data[0]; | 614 | __u64 data[0]; |
615 | }; | 615 | }; |
616 | 616 | ||
617 | /** | ||
618 | * struct ethtool_perm_addr - permanent hardware address | ||
619 | * @cmd: Command number = %ETHTOOL_GPERMADDR | ||
620 | * @size: On entry, the size of the buffer. On return, the size of the | ||
621 | * address. The command fails if the buffer is too small. | ||
622 | * @data: Buffer for the address | ||
623 | * | ||
624 | * Users must allocate the buffer immediately following this structure. | ||
625 | * A buffer size of %MAX_ADDR_LEN should be sufficient for any address | ||
626 | * type. | ||
627 | */ | ||
617 | struct ethtool_perm_addr { | 628 | struct ethtool_perm_addr { |
618 | __u32 cmd; /* ETHTOOL_GPERMADDR */ | 629 | __u32 cmd; |
619 | __u32 size; | 630 | __u32 size; |
620 | __u8 data[0]; | 631 | __u8 data[0]; |
621 | }; | 632 | }; |