get_mempolicy: Support (MPOL_F_NODE | MPOL_F_ADDR) specified

If flags specifies both MPOL_F_NODE and MPOL_F_ADDR,
get_mempolicy() will return the node ID of the node on
which the address addr is allocated into the location pointed to by mode.

Change-Id: Id485e3f4838e3679d877a95e53b21e3421cac88a
This commit is contained in:
Ken Sato
2020-11-30 14:23:51 +09:00
committed by Masamichi Takagi
parent aef50d710c
commit 9f1e6d707c
3 changed files with 57 additions and 0 deletions

View File

@ -20,6 +20,8 @@ struct process_vm;
unsigned long virt_to_phys(void *v);
void *phys_to_virt(unsigned long p);
int phys_to_nid(unsigned long p);
int lookup_node(struct process_vm *vm, void *addr);
int copy_from_user(void *dst, const void *src, size_t siz);
int strlen_user(const char *s);
int strcpy_from_user(char *dst, const char *src);