aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2015-07-13 11:55:44 -0300
committerMauro Carvalho Chehab <[email protected]>2015-08-16 13:02:47 -0300
commit8025e5ddf9c1cac0e632dad49a63abf7848b78cb (patch)
treefb812c2d3cf5940b714d63af0b2bc26082b5855c /net/lapb/lapb_subr.c
parent0f6e2825ce916eed882996bb6e9148c13ecebefd (diff)
[media] mm: Provide new get_vaddr_frames() helper
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. If start belongs to VM_IO | VM_PFNMAP vma, we don't touch page structures. Caller must make sure pfns aren't reused for anything else while he is using them. This function is created for various drivers to simplify handling of their buffers. Signed-off-by: Jan Kara <[email protected]> Acked-by: Mel Gorman <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Acked-by: Andrew Morton <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions