v4l2_rect_map_inside(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_rect_map_inside β€” a ✨ Kernel API Manual ✨ moment

okay bestie so real talk, this one lives in the Kernel API Manual and it's called v4l2_rect_map_inside (that (9) is just the kernel-doc section vibe, iykyk). And the whole entire personality of this function is literally in one line: r should be inside boundary. that's it. that's the tweet. πŸŽ€


✨ SYNOPSIS ✨

void v4l2_rect_map_inside (struct v4l2_rect *r , const struct v4l2_rect *boundary );

no cap, that's the whole signature β€” copy it exactly, don't get cute with it 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • r β€” the rect that will be modified πŸ‘ˆ like, this one gets changed. it's the main character of this operation and it will be edited, so don't be weird about it afterwards.
  • boundary β€” the rect that contains the boundary for r πŸ’– she's the rule-setter, the vibe check, the container. r is supposed to behave itself inside her.
ngl there are exactly two arguments here, so if you were bracing for a long list of options… there isn't one, babes. two pointers, that's the whole meal. πŸ“

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file for all this is ./include/media/v4l2-rect.h β€” that's the home base 🏠✨ and here's the whole friend group, all of them (9)ers, all of them iconic:

like, the rect cinematic universe fr fr 🌈


πŸ’€ quick disclaimer: this page gives you the signature, the two arguments and the squad. it does not hand you a description section, a return value, or an options list β€” so i'm not gonna manifest any of those out of thin air. what you see is what's documented. periodt.

and that's the page!! 🧚 signed off from ./include/media, dated October 2026, version v4l2_rect_map_inside(9) β€” mwah πŸ’‹ go keep your rects inside their boundaries, bestie, slay πŸ’œ

πŸ“¦ where this page comes from