Den lör 25 jan. 2025 kl 13:26 skrev Thomas Weißschuh <linux@xxxxxxxxxxxxxx>: > > > You could designate a special error code to mean: > "This feature is not supported, but that's fine and continue probing". > > For example EOPNOTSUPP: > > ret = init_foo(); > if (ret == 0) > priv->have_foo; > elif (ret != EOPNOTSUPP) > return ret; > > ret = init_bar(); > ... > > [snip] Hi Thomas! This is an good suggestion and might make it seem more "native," which I like. One thing I am worried about, though, do you think it is possible that any of the other functions called by these various inits (registering various devices etc) could or might be updated in the future to legitimately return EOPNOTSUPP, in which case when I just pass their return code along there would be some unexpected behavior? (that the driver does not unload but in fact continues) Or are you saying to return a positive EOPNOTSUPP instead of a negative -EOPNOTSUPP to help ensure that this problem would be less likely? Thanks again! Joshua