Discontiguous memory and cacheflush
Dave Martin
dave.martin at linaro.org
Thu Aug 16 05:43:18 EDT 2012
On Thu, Aug 16, 2012 at 10:19:53AM +0100, Russell King - ARM Linux wrote:
> On Thu, Aug 16, 2012 at 09:27:26AM +0100, Dave Martin wrote:
> > Could we use the currently must-be-zero flags parameter to add new
> > functionality to this syscall, or are there legacy uses of that
> > parameter (or history of userspace not bothering to zero it?)
> >
> > For example, we could have something like
> >
> > do_cache_op(struct iovec *iov, int iovcnt, CF_IOVEC)
> >
> > to flush a discontiguous set of ranges described by an iovec (though we
> > can of course also describe the ranges in other ways)
>
> Why overload an existing syscall with multiple different argument types
> rather than having a new syscall with a sane API?
Sure, if it's OK to add a new system call, that would be a cleaner
approach.
Cheers
---Dave
More information about the linux-arm-kernel
mailing list