Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type CanAttributes ¶
type CanAttributes struct { // State contains one of unix.CAN_STATE_* values. State uint32 // CtrlMode may be used to access unix.CAN_CTRLMODE_* flags, // e.g. for activating FD mode or to configure termination. CtrlMode unix.CANCtrlMode RestartMs uint32 Clock uint32 BusErrCounters *unix.CANBusErrorCounters // BitTiming defines the bit rate, or, alternatively, // bit timing parameters. When writing, either the // the bit rate or the timing parameters should be left blank. BitTiming *unix.CANBitTiming BitTimingConst *unix.CANBitTimingConst DataBitTiming *unix.CANBitTiming DataBitTimingConst *unix.CANBitTimingConst BitrateMax uint32 UnknownTypes []uint16 }
CanAttributes contain the attributes read from a CAN network interface. Fields that are defined as pointers may be nil if they have not been included by the kernel.
See https://github.com/torvalds/linux/blob/master/drivers/net/can/dev/netlink.c for details.
This structure does not provide access to IFLA_CAN_CTRLMODE_EXT, which has not been ported to Linux v5.15 yet. Also, IFLA_CAN_TDC_* is not supported.
type Link ¶
type Link struct { Attr *rtnetlink.LinkAttributes Can *CanAttributes }
func (*Link) DriverName ¶
Click to show internal directories.
Click to hide internal directories.