Пример #1
0
func (d Device) SeqNum() uint64 {
	return uint64(C.udev_device_get_seqnum(d.ptr))
}
Пример #2
0
// Seqnum returns the sequence number of the event.
// This is only valid if the device was received through a monitor.
// Devices read from sys do not have a sequence number.
func (d *Device) Seqnum() uint64 {
	d.lock()
	defer d.unlock()
	return uint64(C.udev_device_get_seqnum(d.ptr))
}