Re: [PATCH 1/9] mm: Provide new get_vaddr_frames() helper

2015-06-11 Thread Sergey Senozhatsky
On (06/10/15 06:20), Mauro Carvalho Chehab wrote: [..] > + > +/** > + * frame_vector_destroy() - free memory allocated to carry frame vector > + * @vec: Frame vector to free > + * > + * Free structure allocated by frame_vector_create() to carry frames. > + */ > +void frame_vector_destroy(struct

[PATCH 1/9] mm: Provide new get_vaddr_frames() helper

2015-06-10 Thread Mauro Carvalho Chehab
From: Jan Kara Provide new function get_vaddr_frames(). This function maps virtual addresses from given start and fills given array with page frame numbers of the corresponding pages. If given start belongs to a normal vma, the function grabs reference to each of the pages to pin them in memory.