Name

is_media_entity_v4l2_video_device — Check if the entity is a video_device

Synopsis

bool is_media_entity_v4l2_video_device (struct media_entity * entity);
 

Arguments

entity

pointer to entity

Return

true if the entity is an instance of a video_device object and can safely be cast to a struct video_device using the container_of macro, or false otherwise.