A deprecation notice was added to the bus_dma(9) man page by scottl@ in
September 2020 discouraging the use of filter functions. I've performed
an attentive check of all callers in the tree and everything that exists
today passes NULL for both filtfunc and filtarg. Thus, we should start
returning EINVAL if these arguments are non-NULL to prevent new usages
from popping up. Update the man page to be more clear about this.
The deprecation notice is present since at least 13.0-RELEASE, so IMO
this is the appropriate step for the lifetime of 15, without actually
breaking the driver API.
I have no real stake in what happens here, nor do I know the whole
history behind the filter functionality. I am trying to clear out some
of my local clean-up branches, and this change enables the removal of a
fair amount of unused complexity across the various busdma
implementations.