Messages in this thread | ![/](/images/icornerl.gif) | | From | Geert Uytterhoeven <> | Date | Tue, 2 Jan 2024 15:47:12 +0100 | Subject | Re: [PATCH v5 10/11] mm/mempolicy: add the mbind2 syscall |
| |
On Sat, Dec 23, 2023 at 7:14 PM Gregory Price <gourry.memverge@gmail.com> wrote: > mbind2 is an extensible mbind interface which allows a user to > set the mempolicy for one or more address ranges. > > Defined as: > > mbind2(unsigned long addr, unsigned long len, struct mpol_args *args, > size_t size, unsigned long flags) > > addr: address of the memory range to operate on > len: length of the memory range > flags: MPOL_MF_HOME_NODE + original mbind() flags > > Input values include the following fields of mpol_args: > > mode: The MPOL_* policy (DEFAULT, INTERLEAVE, etc.) > mode_flags: The MPOL_F_* flags that were previously passed in or'd > into the mode. This was split to hopefully allow future > extensions additional mode/flag space. > home_node: if (flags & MPOL_MF_HOME_NODE), set home node of policy > to this otherwise it is ignored. > pol_maxnodes: The max number of nodes described by pol_nodes > pol_nodes: the nodemask to apply for the memory policy > > The semantics are otherwise the same as mbind(), except that > the home_node can be set. > > Suggested-by: Michal Hocko <mhocko@suse.com> > Suggested-by: Frank van der Linden <fvdl@google.com> > Suggested-by: Vinicius Tavares Petrucci <vtavarespetr@micron.com> > Suggested-by: Rakie Kim <rakie.kim@sk.com> > Suggested-by: Hyeongtak Ji <hyeongtak.ji@sk.com> > Suggested-by: Honggyu Kim <honggyu.kim@sk.com> > Signed-off-by: Gregory Price <gregory.price@memverge.com> > Co-developed-by: Vinicius Tavares Petrucci <vtavarespetr@micron.com>
> arch/m68k/kernel/syscalls/syscall.tbl | 1 +
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Gr{oetje,eeting}s,
Geert
-- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
| ![\](/images/icornerr.gif) |