> On 9. Apr 2017, at 19:16, Taylor R Campbell
> wrote:
>
>> Date: Sun, 9 Apr 2017 18:47:25 +0200
>> From: "J. Hannken-Illjes"
>>
>>> On 6. Apr 2017, at 11:44, J. Hannken-Illjes wrote:
>>> Good hint.
> Date: Sun, 9 Apr 2017 18:47:25 +0200
> From: "J. Hannken-Illjes"
>
> > On 6. Apr 2017, at 11:44, J. Hannken-Illjes wrote:
> > Good hint. Prepared a partial implementation of
> >
> > int
> > mountlist_iterate(int (*cb)(struct mount *, void
> On 6. Apr 2017, at 11:44, J. Hannken-Illjes wrote:
>
>>
>> On 5. Apr 2017, at 05:14, Chuck Silvers wrote:
>>
>> have you considered a callback-based interface where the loop
>> is inside the iteration API rather than in the caller?
>> the
> On 5. Apr 2017, at 05:14, Chuck Silvers wrote:
>
> have you considered a callback-based interface where the loop
> is inside the iteration API rather than in the caller?
> the vfs_busy/unbusy could also be hidden in the iteration API
> so that the callback would not need need
have you considered a callback-based interface where the loop
is inside the iteration API rather than in the caller?
the vfs_busy/unbusy could also be hidden in the iteration API
so that the callback would not need need to worry about it at all.
I looked at how the iteration stuff is used in your
Time to start a second round. This time the iterator only, vfs_busy()
and friends deferred to a new thread once the iterator is done.
Changes from the previous proposal:
- Removed the "flags" argument from mountlist_iterator_next(), will
add mountlist_iterator_trynext() and vfs_trybusy() when