5f08e609c0
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
15 lines
243 B
Go
15 lines
243 B
Go
package continuity
|
|
|
|
// from /usr/include/linux/kdev_t.h
|
|
|
|
func getmajor(dev uint64) uint64 {
|
|
return dev >> 8
|
|
}
|
|
|
|
func getminor(dev uint64) uint64 {
|
|
return dev & 0xff
|
|
}
|
|
|
|
func makedev(major int, minor int) int {
|
|
return ((major << 8) | minor)
|
|
}
|