]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7108d6a03d562cf1d21731e03aab20ad108290cd
tree8c8c593db26d3e6ba29372eb3133b487e2000d28
parentdf285b2b94d77168f96d1914743f62685c2aba97
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