// Major returns the major component of a Linux device number. func Major(dev uint64) uint32 { … } // Minor returns the minor component of a Linux device number. func Minor(dev uint64) uint32 { … } // Mkdev returns a Linux device number generated from the given major and minor // components. func Mkdev(major, minor uint32) uint64 { … }