On Wed, Jan 02, 2019 at 01:56:12PM -0500, Greg Troxel wrote:
 > > I would make it Pa in the API and let userland translate to whatever
 > > values we want to display by default.
 > 
 > That seems somewhat reasonable, except that in my experience everybody
 > wants to see atmospheric pressure in mb/hPa (if they aren't using inches
 > or mm of Hg).

This is an integer API underneath, right? So the choice of kernel ->
user reporting unit should be made on precision and range grounds.
Which isn't much of a concern for atmospheric pressure as the possible
range is narrow, but one could imagine someone trying to use the same
interface for lab equipment.

-- 
David A. Holland
dholl...@netbsd.org

Reply via email to