---
name: "input_set_capability"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/input_set_capability"
---

# input\_set\_capability(9)

mark device as capable of a certain event

## NAME

input\_set\_capability - mark device as capable of a certain event

## SYNOPSIS

**void input\_set\_capability(struct input\_dev \*** *dev***, unsigned int** *type***, unsigned int** *code***);**

## ARGUMENTS

*dev*

device that is capable of emitting or accepting event

*type*

type of the event (EV\_KEY, EV\_REL, etc...)

*code*

event code

## DESCRIPTION

In addition to setting up corresponding bit in appropriate capability bitmap the function also adjusts dev-\>evbit.

## COPYRIGHT
