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