axienet_device_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’» axienet_device_reset(9) β€” your Kernel API Manual bestie πŸ’»

okay so we’re in the Kernel API Manual, and this is the page for axienet_device_reset(9). it’s giving β€œhardware reset but make it Axi Ethernet,” and I’m obsessed. let’s get into it 🫢


🌸 NAME 🌸

axienet_device_reset β€” reset and initialize the Axi Ethernet hardware. periodt. πŸ’…

✨ SYNOPSIS ✨

int axienet_device_reset (struct net_device *ndev );

πŸŽ€ ARGUMENTS πŸŽ€

  • ndev β€” pointer to the net_device structure. that’s the whole argument, bestie. no extra lore. πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

okay so axienet_device_reset is the function you call to reset and initialize the Axi Ethernet core. it’s typically called during initialization, which lowkey makes sense: you’re setting things up before the main character era begins. ✨

what it does, specifically: it does a reset of the Axi DMA Rx/Tx channels and initializes the Axi DMA BDs. and because the Axi DMA reset lines are connected to the Axi Ethernet reset lines, this in turn resets the Axi Ethernet core. so no separate hardware reset is done for the Axi Ethernet core β€” that part is literally handled by the connection. no cap. πŸ”₯

bestie, keep that hardware relationship in mind: the reset travels through the connected reset lines, and the function does not do a separate hardware reset for the Axi Ethernet core. πŸ’…

🌈 RETURN 🌈

  • 0 on success πŸŽ‰
  • a negative error number otherwise 😭

πŸ¦‹ SEE ALSO πŸ¦‹

the Kernel file, plus a whole group chat of friends:

🫢 kisses from ./drivers/net/ethernet/xilinx · October 2026 · axienet_device_reset(9) · Kernel API Manual 🫢

πŸ“¦ where this page comes from