---
name: "dev_get_stats"
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/dev_get_stats"
---

# dev\_get\_stats(9)

get network device statistics

## NAME

dev\_get\_stats - get network device statistics

## SYNOPSIS

**struct rtnl\_link\_stats64 \* dev\_get\_stats(struct net\_device \*** *dev***, struct rtnl\_link\_stats64 \*** *storage***);**

## ARGUMENTS

*dev*

device to get statistics from

*storage*

place to store stats

## DESCRIPTION

Get network statistics from device. Return *storage*. The device driver may provide its own method by setting dev-\>netdev\_ops-\>get\_stats64 or dev-\>netdev\_ops-\>get\_stats; otherwise the internal statistics structure is used.

## COPYRIGHT
