xvip_enum_mbus_code(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 xvip_enum_mbus_code(9) 🌸

hiii bestie πŸ’– welcome to the Kernel API Manual page for xvip_enum_mbus_code(9) β€” yes, the manual name is folded in near the top like a little name tag, and we are being cute about it ✨


πŸŽ€ NAME πŸŽ€

xvip_enum_mbus_code β€” Enumerate the media format code. That's the whole assignment, and it ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the exact vibe, no edits, no cap:

int xvip_enum_mbus_code (struct v4l2_subdev *subdev , struct
v4l2_subdev_state *sd_state , struct v4l2_subdev_mbus_code_enum *code );

πŸ’œ ARGUMENTS πŸ’œ

  • subdev β€” V4L2 subdevice. This is the subdevice in question, the main character of this call 🫢
  • sd_state β€” V4L2 subdev state. The state it's carrying around, lowkey important.
  • code β€” returning media bus code. This is the returning media bus code spot β€” it's giving output-parameter energy πŸ’«

🌈 DESCRIPTION 🌈

okay so xvip_enum_mbus_code() enumerates the media bus code of the subdevice. It returns the corresponding pad format code. Simple enough, right? πŸ’…

but listen: this function only works for subdevices with fixed format on all pads. Subdevices with multiple format should have their own function to enumerate mbus codes β€” that's the rule, and we respect it, periodt πŸ‘‘


⭐ RETURN ⭐

  • 0 if the media bus code is found β€” slay βœ…
  • -EINVAL if the format index is not valid β€” not slay, but very clear 😭

🧚 SEE ALSO 🧚

like, go look at these too, bestie:


mwah πŸ’‹ this little page comes from ./drivers/media/platform/xilinx, dated October 2026, and it's the xvip_enum_mbus_code(9) manual page β€” byeee πŸŽ€βœ¨

πŸ“¦ where this page comes from