On 2024/6/17 15:51, Oscar Salvador wrote: > On 2024-06-17 09:31, Miaohe Lin wrote: > >> IMHO, it might not be suitable to use EAGAIN. Because it means >> "Resource temporarily unavailable" and >> this can be solved by simply retry later without any further actions >> taken. But I might be wrong. > > We usually use 'EOPNOTSUPP' when we fail due to a setting not being set. > EPERM is more for a capability matter. Thanks Oscar. So we should return EOPNOTSUPP here. Thanks. .