net_failover_create(9)
π 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:
- the original standby netdev
- 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
- 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