'\" t .\" Title: netdev_cap_txqueue .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "NETDEV_CAP_TXQUEUE" "9" "June 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" netdev_cap_txqueue \- check if selected tx queue exceeds device queues .SH "SYNOPSIS" .HP \w'u16\ netdev_cap_txqueue('u .BI "u16 netdev_cap_txqueue(struct\ net_device\ *\ " "dev" ", u16\ " "queue_index" ");" .SH "ARGUMENTS" .PP \fIstruct net_device * dev\fR .RS 4 network device .RE .PP \fIu16 queue_index\fR .RS 4 given tx queue index .RE .SH "DESCRIPTION" .PP Returns 0 if given tx queue index >= number of device tx queues, otherwise returns the originally passed tx queue index\&. .SH "COPYRIGHT" .br