Skip to content

x/sys/unix: no major, minor, and mkdev functions #8106

@gopherbot

Description

@gopherbot

by tim.thelion:

Hello, I am in need of the Major, Minor, and Mkdev functions from the linux kernel:
https://github.com/torvalds/linux/blob/master/include/linux/kdev_t.h#L9 for converting a
device number produced by "stat.Sys().(*syscall.Stat_t)" to it's major and
minor components, and vice versa.  As you can see, simply imitating the kernel sources
won't work: http://play.golang.org/p/zvRqa2eEjN


Thank you for your time,

Timothy Hobbs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions