---
name: "free_netdev"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/free_netdev"
---

# free\_netdev(9)

free network device

## NAME

free\_netdev - free network device

## SYNOPSIS

**void free\_netdev(struct net\_device \*** *dev***);**

## ARGUMENTS

*dev*

device

## DESCRIPTION

This function does the last stage of destroying an allocated device interface. The reference to the device object is released. If this is the last reference then it will be freed. Must be called in process context.

## COPYRIGHT
