Beispiel #1
0
func (d Device) DevNum() DevNum {
	return DevNum(C.udev_device_get_devnum(d.ptr))
}
Beispiel #2
0
// Devnum returns the device major/minor number.
func (d *Device) Devnum() Devnum {
	d.lock()
	defer d.unlock()
	return Devnum{C.udev_device_get_devnum(d.ptr)}
}