v4l2_phys_addr_for_input(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_phys_addr_for_input(9) β€” calculate the PA for an input ✨

okay so bestie, welcome to this page from the Kernel API Manual 🫢 it's all about v4l2_phys_addr_for_input, and yes the name is a mouthful but we're gonna slay it together.


🌸 NAME 🌸

v4l2_phys_addr_for_input β€” calculate the PA for an input πŸ’–

✨ SYNOPSIS ✨

u16 v4l2_phys_addr_for_input (u16 phys_addr , u8 input );

πŸŽ€ ARGUMENTS πŸŽ€

  • phys_addr β€” the physical address of the parent πŸ‘‘
  • input β€” the number of the input port, and it must be between 1 and 15 okay?? no sneaky zero, no 16, periodt πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function calculates a new physical address based on the input port number. it's giving "math but make it media" ✨ for example:

PA = 0.0.0.0 and input = 2 becomes 2.0.0.0

PA = 3.0.0.0 and input = 1 becomes 3.1.0.0

PA = 3.2.1.0 and input = 5 becomes 3.2.1.5

PA = 3.2.1.3 and input = 5 becomes f.f.f.f since it maxed out the depth.
lowkey important: that last one goes full f.f.f.f because it maxed out the depth, no cap 😭

πŸ’« RETURN πŸ’«

the new physical address or CEC_PHYS_ADDR_INVALID πŸ’€ that's it, that's the return.

🌈 SEE ALSO 🌈


okay bye bestie, this cutie page came from ./drivers/media/v4l2-core, dated October 2026, and it's literally the manual for v4l2_phys_addr_for_input(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from