示例#1
0
文件: udev.go 项目: jessta/udev
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))
}