OSDN Git Service

media: v4l2-mem2mem: add v4l2_m2m_get_unmapped_area for no-mmu platform
authorDillon Min <dillon.minfei@gmail.com>
Tue, 19 Oct 2021 08:43:18 +0000 (09:43 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:31 +0000 (08:11 +0000)
commit0a08088f82c2db9cd6bce3258c79a76980c77651
tree8c8c593db26d3e6ba29372eb3133b487e2000d28
parent68dda3e02522aae867f4d526e44e1a87a6cec52a
media: v4l2-mem2mem: add v4l2_m2m_get_unmapped_area for no-mmu platform

For platforms without MMU the m2m provides a helper method
v4l2_m2m_get_unmapped_area(), The mmap() routines will call
this to get a proposed address for the mapping.

More detailed information about get_unmapped_area can be found in
Documentation/nommu-mmap.txt

Signed-off-by: Dillon Min <dillon.minfei@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-mem2mem.c
include/media/v4l2-mem2mem.h