Skip to contentSkip to conversation

resource managed pollfunc

DISCUSSION Gregor Boirie 2 participants 2 messages Jul 19, 2016 – Jul 24, 2016 IIO

lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw
Quoted 6 lines · Gregor Boirie

Dear all,

I'm wondering why there are no resource managed versions of iio_triggered_buffer_setup and iio_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,
Greg

Signature · 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