unix: add EthtoolDrvinfo and IoctlGetEthtoolDrvinfo on linux

Add type EthtoolDrvinfo and the type-safe IoctlGetEthtoolDrvinfo ioctl
wrapper func to retrieve it.

Change-Id: Ia514df89175939d9b0c2c4ddace621882e86b21a
Reviewed-on: https://go-review.googlesource.com/c/sys/+/308989
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Matt Layher <mdlayher@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Tobias Klauser
2021-04-12 22:04:55 +00:00
committed by Tobias Klauser
parent 46babdb380
commit f1c623a9e7
4 changed files with 51 additions and 0 deletions
+2
View File
@@ -3645,6 +3645,8 @@ const (
ETHTOOL_A_TUNNEL_INFO_MAX = C.ETHTOOL_A_TUNNEL_INFO_MAX
)
type EthtoolDrvinfo C.struct_ethtool_drvinfo
type (
HIDRawReportDescriptor C.struct_hidraw_report_descriptor
HIDRawDevInfo C.struct_hidraw_devinfo