Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2018 12:50:36 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        Matthew Macy <mmacy@freebsd.org>, Ryan Libby <rlibby@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org, bde@freebsd.org
Subject:   Re: svn commit: r335094 - head/sys/ofed/drivers/infiniband/core
Message-ID:  <4aa93c89-686e-e344-8e04-c34069e8516d@selasky.org>
In-Reply-To: <20180614182603.U1417@besplex.bde.org>
References:  <201806132330.w5DNUsrE043573@repo.freebsd.org> <CAHgpiFwQza_CEeu687s-HwnHPT%2BfcPk80nHkbU3Kn-aUM2AjHQ@mail.gmail.com> <CAPrugNq-dGjOhJ7PW5zniggowENW74P5ttCWH01U=AmXcj4gzA@mail.gmail.com> <c14b6b39-22b3-cdb5-d387-829bad3509f3@selasky.org> <20180614182603.U1417@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4aa93c89-686e-e344-8e04-c34069e8516d>