tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: General device properties API



> On Aug 13, 2021, at 7:10 PM, Jason Thorpe <thorpej%me.com@localhost> wrote:
> 
> The API I’m proposing unifies these two domains.  By default, getting a property will fall through to the “lower layer” (the device tree), unless a property has been explicitly set by software, in which case its value is interposed.  There is a separate set of functions that allow software to go directly to the device tree, if needed, using the device’s devhandle directly.

Thanks for the constructive feedback I have received so far!  I’ve incorporated several suggestions, and have also tweaked a few things to handle situations I encountered when converting code using platform-specific functions to the general functions.  An updated diff is here:

	https://www.netbsd.org/~thorpej/device-getprop-diff-v2.txt

…and to aid in the discussion around the API, a man page:

	https://www.netbsd.org/~thorpej/device_properties.9

-- thorpej



Home | Main Index | Thread Index | Old Index