On 06/14/18 10:46, Bruce Evans wrote:
Are these macros for conversion of host (FreeBSD) dev_t's or target (Linux)
ones? If for the host, then I don't see any reason not to use the host
APIs.
If for the target, then they shouldn't be used with the host dev_t. If for
a mixture, then the translations are very confusing, especially when they
are the identity, and many more macros are needed to reduce the confusion.
Hi,
These values are only used inside the LinuxKPI for creating character
devices. They have no exposure to user-space.
Basically:
Z = MKDEV(X,Y)
MAJOR(Z) must be equal to X
MINOR(Z) must be equal to Y
--HPS
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"