vport_from_priv(9)
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
- 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