diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2018-12-12 07:40:48 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-05-23 10:18:19 -0400 |
commit | b29ecab178b074be999afd5d6bf6e5b4c2bb782b (patch) | |
tree | cbedf27675932b3ddb8fb907bb085edfb846a825 /include/media | |
parent | 14f28f5cea9e3998442de87846d1907a531b6748 (diff) | |
download | linux-b29ecab178b074be999afd5d6bf6e5b4c2bb782b.tar.gz linux-b29ecab178b074be999afd5d6bf6e5b4c2bb782b.tar.bz2 linux-b29ecab178b074be999afd5d6bf6e5b4c2bb782b.zip |
media: videobuf2-core.h: Document the alloc memop size argument as page aligned
The size argument of the alloc memop, which allocates buffer memory, is
page aligned. Document it as such in the only caller as well as ops
documentation.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/videobuf2-core.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index 22f3ff76a8b5..c03ef7cc5071 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h @@ -54,7 +54,8 @@ struct vb2_threadio_data; * will then be passed as @buf_priv argument to other ops in this * structure. Additional gfp_flags to use when allocating the * are also passed to this operation. These flags are from the - * gfp_flags field of vb2_queue. + * gfp_flags field of vb2_queue. The size argument to this function + * shall be *page aligned*. * @put: inform the allocator that the buffer will no longer be used; * usually will result in the allocator freeing the buffer (if * no other users of this buffer are present); the @buf_priv |