On 10.12.2025 11:37, Teddy Astie wrote:
> Le 10/12/2025 à 09:50, Jan Beulich a écrit :
>> xc_resource_op() doesn't return errno values, so by using -EOPNOTSUPP here 
>> you
>> put the caller into a difficult position when actually looking at the return
>> value: Does -1 mean -1 or -EPERM?
> 
> That's a bit unfortunate as xc_resource_op() can return either -1 or 
> some -errno; so -1 could be either -EPERM or a internal failure of 
> xc_resource_op and we can't really know.

Can it? Assuming do_platform_op() and do_multicall_op() behave correctly,
I can't see any problematic return.

Jan

Reply via email to