l3mdev_maste...by_index_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… l3mdev_master_upper_ifindex_by_index_rcu(9) πŸ’…

okay so bestie, we're in the Kernel API Manual today and this one's a lil function with a very long name, but she's iconic and honestly not that deep πŸŽ€


✨ NAME ✨

l3mdev_master_upper_ifindex_by_index_rcu β€” get the index of the upper l3 master device πŸ¦‹

like, you want the boss device's index? this is the girl that gets it for you. no cap.


🌸 SYNOPSIS 🌸

int l3mdev_master_upper_ifindex_by_index_rcu (struct net *net , int ifindex );

yes that's the whole signature, she said "short and sweet" and then gave us a hyphen-heavy name anyway πŸ˜­πŸ’€


πŸ”₯ ARGUMENTS πŸ”₯

  • net β€” the network namespace we're doing the device index lookup in. it's giving "where are we even looking" energy 🌈
  • ifindex β€” the targeted interface. the one we're asking about, the main character πŸŽ€
🫢 quick vibe check: net = which namespace, ifindex = which interface. two args, that's it, we love a low-effort date periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

all her besties fr fr, go say hi πŸ’…


✨ mwah ✨ that's the page! sourced from ./net/l3mdev, dated October 2026 β€” literally stamped and everything. slay, go read the man page and remember to hold the RCU lock, iykyk πŸ§šπŸ’œ

πŸ“¦ where this page comes from