vport_from_priv(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this is the Kernel API Manual page for vport_from_priv(9), and it’s literally about finding your fave vport from a private-data pointer. no cap ✨

🌸 NAME 🌸

vport_from_priv β€” lookup vport from private data pointer. πŸ’–

✨ SYNOPSIS ✨

struct vport * vport_from_priv (void *priv );

πŸŽ€ ARGUMENTS πŸŽ€

  • priv β€” start of the private data area. that’s the vibe 🫢

πŸ¦‹ RETURN πŸ¦‹

A reference to a vport structure that contains priv. slay, that’s the whole return value πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

okay so sometimes it’s useful to translate from a pointer to the private data area over to the vport β€” like when the private data pointer is the result of a hash table lookup. iconic use case, honestly πŸ”₯

priv must point to the start of the private data area. periodt. no shortcuts πŸ™ˆ

🌈 SEE ALSO 🌈

  • Kernel file ./net/openvswitch/vport.h
  • struct vport_portids(9)
  • struct vport(9)
  • struct vport_parms(9)
  • struct vport_ops(9)
  • struct vport_upcall_stats_percpu(9)
  • vport_priv(9)

go give these besties a read, iykyk πŸ‘‘


mwah πŸ’‹ this cutie came from ./net/openvswitch, dated October 2026, and it’s literally vport_from_priv(9). periodt πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from