resource managed pollfunc
Dear all,
I'm wondering why there are no resource managed versions of iio_triggered_buffer_setup and iio_alloc_pollfunc.
Any particular reason ??
Regards,
Greg
Jonathan Cameron
maintainerQuoted 6 lines · Gregor Boirie
Dear all,
I'm wondering why there are no resource managed versions of
iio_triggered_buffer_setupandiio_alloc_pollfunc.Any particular reason ??
No one got around to it?
The triggered buffer one is a little bit non trivial a it does a good deal of it's own allocating.
It's not immediately obvious whether such a devm call should just make devm calls itself, or should use it's own unwind.
I think I'd prefer the making devm calls itself, though that would obviously lead to perhaps more code duplication as you'd also need an explicit unwind version.
Any other similar situations than anyone can think of to give us a precedent on how to handle this?
Jonathan
Quoted 7 lines
Regards,
GregSignature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html