linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* resource managed pollfunc
@ 2016-07-19 15:19 Gregor Boirie
  2016-07-24 11:37 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Gregor Boirie @ 2016-07-19 15:19 UTC (permalink / raw)
  To: linux-iio@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: resource managed pollfunc
  2016-07-19 15:19 resource managed pollfunc Gregor Boirie
@ 2016-07-24 11:37 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2016-07-24 11:37 UTC (permalink / raw)
  To: Gregor Boirie, linux-iio@vger.kernel.org

On 19/07/16 16:19, Gregor Boirie wrote:
> 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
> 
> Regards,
> Greg
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-24 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-19 15:19 resource managed pollfunc Gregor Boirie
2016-07-24 11:37 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).