STRUCT TEGRA_VI(9)
π struct tegra_vi(9) π
Okay bestie, welcome to the Kernel API Manual, section 9 β yes we're in the kernel docs, yes it's a whole vibe. Today's main character is struct tegra_vi, aka the NVIDIA Tegra Video Input device structure. It's giving "I hold the whole VI device together and I don't even brag about it." πβ¨
β¨ NAME β¨
struct tegra_vi β the NVIDIA Tegra Video Input device structure. That's it, that's the whole glow-up. π
π¦ SYNOPSIS π¦
struct tegra_vi {
struct device *dev;
struct host1x_client client;
void __iomem *iomem;
struct clk *clk;
const struct tegra_vi_soc *soc;
const struct tegra_vi_ops *ops;
struct list_head vi_chans;
};
Look at her. Seven members, zero notes. π
πΈ Members πΈ
Every field is a lil icon and here's what each one actually does, no cap:
devβ thedevicestruct, fr fr. Your classic device representation, living its best life.clientβ ahost1x_clientstruct. That's the host1x hookup, iykyk.iomemβ the register base. This is where the hardware registers live, so likeβ¦ the address of the whole operation. πclkβ the main clock for the VI block. She keeps time, literally. β°socβ a pointer to the SoC data structure. Different Tegra chips, different lore β this points at whichever one we're on. πopsβ the vi operations. All the "what can this thing actually do" energy. π₯vi_chansβ the list head for VI channels. It's the starting point of the channel list β very "head of the group chat" of it. π¬
Real talk: these are struct members, so don't go writing them like function args, bestie. Read the source if you're unsure β accuracy is the whole aesthetic. π
π§ SEE ALSO π§
The kernel file ./drivers/staging/media/tegra-video/vi.h struct β yes, go read it, it's all there:
struct tegra_vi_ops(9)struct tegra_vi_soc(9)struct tegra_vi_channel(9)struct tegra_channel_buffer(9)struct tegra_video_format(9)
All of them linked together like a little friend group. Click through, you'll be obsessed. π«Ά
Sign-off time, bestie β¨ This lil page came out of ./drivers/staging/media/tegra-... and it's dated October 2026 β and it's the struct tegra_vi(9) page, obviously. Go forth and slay your media driver. ππ
π¦ 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