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

# netdev\_cap\_txqueue(9)

check if selected tx queue exceeds device queues

## NAME

netdev\_cap\_txqueue - check if selected tx queue exceeds device queues

## SYNOPSIS

**u16 netdev\_cap\_txqueue(struct net\_device \*** *dev***, u16** *queue\_index***);**

## ARGUMENTS

*dev*

network device

*queue\_index*

given tx queue index

## DESCRIPTION

Returns 0 if given tx queue index \>= number of device tx queues, otherwise returns the originally passed tx queue index.

## COPYRIGHT
