l3mdev_maste...by_index_rcu(9)
π 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 π
- the kernel file
./net/l3mdev/l3mdev.cβ where she actually lives π l3mdev_master_ifindex_rcu(9)l3mdev_fib_table_rcu(9)l3mdev_link_scope_lookup(9)l3mdev_fib_rule_match(9)
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
- 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