'\" t .\" Title: dev_get_stats .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "DEV_GET_STATS" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Network device support" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" dev_get_stats \- get network device statistics .SH "SYNOPSIS" .HP \w'struct\ rtnl_link_stats64\ *\ dev_get_stats('u .BI "struct rtnl_link_stats64 * dev_get_stats(struct\ net_device\ *\ " "dev" ", struct\ rtnl_link_stats64\ *\ " "storage" ");" .SH "ARGUMENTS" .PP \fIstruct net_device * dev\fR .RS 4 device to get statistics from .RE .PP \fIstruct rtnl_link_stats64 * storage\fR .RS 4 place to store stats .RE .SH "DESCRIPTION" .PP Get network statistics from device\&. Return \fIstorage\fR\&. 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\&. .SH "COPYRIGHT" .br