v4l2_querymenu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_querymenu πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this little cutie is v4l2_querymenu(9), and we're gonna get you fully caught up, no cap 🫢


🌸 NAME 🌸

v4l2_querymenu β€” a lil helper function bestie, here to help you implement the VIDIOC_QUERYMENU ioctl (the docs call it :ref:VIDIOC_QUERYMENU <vidioc_queryctrl>`` β€” that's the literal ref string, don't come for me πŸ’€)


✨ SYNOPSIS ✨

int v4l2_querymenu (struct v4l2_ctrl_handler *hdl , struct
v4l2_querymenu *qm );

πŸŽ€ ARGUMENTS πŸŽ€

  • hdl β€” a pointer to struct v4l2_ctrl_handler. literally just a pointer, she's not complicated πŸ’–
  • qm β€” a pointer to struct v4l2_querymenu. also just a pointer. iconic of her ngl ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the whole vibe check: if hdl == NULL then they will all return -EINVAL. that's it. that's the tea β˜• β€” pass a NULL handler and everything just bounces back with -EINVAL, no notes πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

okay this list is long long, but every single one of these deserves her moment, so let's go πŸ‘‘

Kernel file ./include/media/v4l2-ctrls.h β€” and union v4l2_ctrl_ptr(9):

like I said. a LOT 🫢 go read them, they're all serving πŸ’…


ngl this page is short but she's still mother πŸ‘‘ handle your hdl, don't pass NULL, and you're golden ✨

mwah πŸ’‹ this has been v4l2_querymenu(9) β€” straight out of ./include/media, dated October 2026, sitting pretty under the Kernel API Manual umbrella πŸŽ€ bye bestie, go slay some ioctls πŸ¦‹πŸ’–

πŸ“¦ where this page comes from