示例#1
0
文件: udev.go 项目: jessta/udev
func (d Device) DevNum() DevNum {
	return DevNum(C.udev_device_get_devnum(d.ptr))
}
示例#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)}
}