svn commit: r335094 - head/sys/ofed/drivers/infiniband/core
Hans Petter Selasky
hps at selasky.org
Thu Jun 14 10:50:54 UTC 2018
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
More information about the svn-src-all
mailing list