mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
xen/grant-table: Make set/clear page private code shared
Make set/clear page private code shared and accessible to other kernel modules which can re-use these instead of open-coding. Signed-off-by: Oleksandr Andrushchenko <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Signed-off-by: Boris Ostrovsky <[email protected]>
This commit is contained in:
parent
d72e90f33a
commit
8c3799ee25
2 changed files with 38 additions and 19 deletions
|
|
@ -198,6 +198,9 @@ void gnttab_free_auto_xlat_frames(void);
|
|||
int gnttab_alloc_pages(int nr_pages, struct page **pages);
|
||||
void gnttab_free_pages(int nr_pages, struct page **pages);
|
||||
|
||||
int gnttab_pages_set_private(int nr_pages, struct page **pages);
|
||||
void gnttab_pages_clear_private(int nr_pages, struct page **pages);
|
||||
|
||||
int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops,
|
||||
struct gnttab_map_grant_ref *kmap_ops,
|
||||
struct page **pages, unsigned int count);
|
||||
|
|
|
|||
Loading…
Reference in a new issue