Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IoctlGetEthtoolDrvinfo (0.16 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/ioctl_linux.go

    	return &value, err
    }
    
    func IoctlSetRTCWkAlrm(fd int, value *RTCWkAlrm) error {
    	return ioctlPtr(fd, RTC_WKALM_SET, unsafe.Pointer(value))
    }
    
    // IoctlGetEthtoolDrvinfo fetches ethtool driver information for the network
    // device specified by ifname.
    func IoctlGetEthtoolDrvinfo(fd int, ifname string) (*EthtoolDrvinfo, error) {
    	ifr, err := NewIfreq(ifname)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/ifreq_linux.go

    func (ifr *Ifreq) clear() {
    	for i := range ifr.raw.Ifru {
    		ifr.raw.Ifru[i] = 0
    	}
    }
    
    // TODO(mdlayher): export as IfreqData? For now we can provide helpers such as
    // IoctlGetEthtoolDrvinfo which use these APIs under the hood.
    
    // An ifreqData is an Ifreq which carries pointer data. To produce an ifreqData,
    // use the Ifreq.withData method.
    type ifreqData struct {
    	name [IFNAMSIZ]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top