STRUCT V4L2_EVENT_MOTION_DET(9)
π struct v4l2_event_motion_det(9) β motion detection event π
okay so bestie, this is a page straight outta the Kernel API Manual, and it's literally the lil struct that tells you motion got detected πβ¨ Think of it as the group chat notification that says "bestieβ¦ something moved" π
πΈ NAME πΈ
struct v4l2_event_motion_det β the motion detection event, periodt π
β¨ SYNOPSIS β¨
struct v4l2_event_motion_det {
__u32 flags;
__u32 frame_sequence;
__u32 region_mask;
};
no cap, that's the whole thing β three lil __u32 fields and she's iconic π
π¦ Members π¦
flagsβ the vibe-check field π«Ά ifV4L2_EVENT_MD_FL_HAVE_FRAME_SEQis set, then theframe_sequencefield is valid. If it's not setβ¦ yeah, don't trust that number, bestie πframe_sequenceβ the frame sequence number associated with this event π₯ so like, which frame got the motion moment π«region_maskβ which regions detected motion π it's giving "map of where the drama happened" πΊοΈβ¨
π SEE ALSO π
- Kernel file
./include/uapi/linux/videodev2.h struct v4l2_capability(9)struct v4l2_plane(9)struct v4l2_buffer(9)v4l2_timeval_to_ns(9)struct v4l2_exportbuffer(9)struct v4l2_selection(9)struct v4l2_plane_pix_format(9)struct v4l2_pix_format_mplane(9)struct v4l2_sdr_format(9)struct v4l2_meta_format(9)struct v4l2_format(9)struct v4l2_create_buffers(9)struct v4l2_remove_buffers(9)
likeβ¦ that's the whole friend group, go read 'em all iykyk π
ngl this one's short and sweet β but don't sleep on it, region_mask is doing main character work π
k byeee, this was brought to you from ./include/uapi/linux, dated October 2026 β stay iconic, bestie π§ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms