Re: Re: [PATCH v6 07/14] mm/damon: Implement kernel space API

From: SeongJae Park
Date: Tue Mar 10 2020 - 07:57:01 EST


On Tue, 10 Mar 2020 09:01:52 +0000 Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> wrote:

> On Mon, 24 Feb 2020 13:30:40 +0100
> SeongJae Park <sjpark@xxxxxxxxxx> wrote:
>
> > From: SeongJae Park <sjpark@xxxxxxxxx>
> >
> > This commit implements the DAMON api for the kernel. Other kernel code
> > can use DAMON by calling damon_start() and damon_stop() with their own
> > 'struct damon_ctx'.
> >
> > Signed-off-by: SeongJae Park <sjpark@xxxxxxxxx>
>
> Seems like it would have been easier to create the header as you went along
> and avoid the need to have the bits here dropping static.

Yes, exporing the API from the beginning must be much simpler and easy to
review!

>
> Or the moves for that matter.
>
> Also, ideally have full kernel-doc for anything that forms part of an
> interface that is intended for use by others.

Agreed, will use the kernel-doc comments!


Thanks,
SeongJae Park

>
> Jonathan
>
> > ---
[...]