net_failover_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… net_failover_create(9) πŸ’…

okay so this is a page from the Kernel API Manual β€” yes, the kernel has lore too, and this one's about making a failover instance happen. buckle in bestie πŸŽ€


✨ NAME ✨

net_failover_create β€” literally "Create and register a failover instance" πŸ¦‹


🌸 SYNOPSIS 🌸

struct failover * net_failover_create (struct net_device *standby_dev );

no cap, that's the whole signature. it takes one arg and hands you back a struct failover * 🫢


πŸ’– ARGUMENTS πŸ’–

  • standby_dev β€” the standby netdev. that's it, that's the whole arg. it's the net device living its standby era πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does it actually do? it creates a failover netdev and registers a failover instance for a standby netdev. iconic behavior honestly ✨

it's used by paravirtual drivers that are on that 3-netdev model lifestyle β€” iykyk 🌈

and here's the cute part: the failover netdev acts as a master device πŸ‘‘ and it controls 2 slave devices:

  1. the original standby netdev
  2. a VF netdev with the same MAC β€” that one gets registered as the primary netdev

two slaves, one master, same MAC, main character energy fr fr πŸ”₯


⭐ RETURN ⭐

returns a pointer to the failover instance πŸ’« (that's your struct failover *, bestie, go use it)


πŸ¦‹ SEE ALSO πŸ¦‹

  • the kernel file ./drivers/net/net_failover.c β€” go read the source, it's giving homework but make it slay πŸ“š
  • net_failover_destroy(9) β€” yeah you're gonna need this one later πŸ’€ the cleanup arc is real

ok tiny reminder: this lives in ./drivers/net β€” that's the neighborhood, that's where the files at 🏑

and that's the whole page!! brought to you by ./drivers/net, dated October 2026, filed under net_failover_create(9) β€” mwah, go forth and failover responsibly πŸ’œπŸ§šπŸ“

πŸ“¦ where this page comes from