[PATCH V3 1/6] stm class: Add ioctl get_options interface

Alexander Shishkin alexander.shishkin at linux.intel.com
Fri Feb 12 07:18:48 PST 2016


Chunyan Zhang <zhang.chunyan at linaro.org> writes:

> There is already an interface of set_options, but no get_options yet.
> Before setting any options, one would may want to see the current
> status of that option by means of get_options interface. This
> interface has been used in CoreSight STM driver.

I'm not sure I understand the reasoning behind this. If a userspace
program opens a communication channel and wants to configure certain
features on it, why does its choice depend on what has been configured
for this channel previously? It can be anything at all. Most likely,
it's either unconfigured or configured to its default values, but why
does this matter for a new writer?

Regards,
--
Alex



More information about the linux-arm-kernel mailing list