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

# transport\_class\_register(9)

register an initial transport class

## NAME

transport\_class\_register - register an initial transport class

## SYNOPSIS

**int transport\_class\_register(struct transport\_class \*** *tclass***);**

## ARGUMENTS

*tclass*

a pointer to the transport class structure to be initialised

## DESCRIPTION

The transport class contains an embedded class which is used to identify it. The caller should initialise this structure with zeros and then generic class must have been initialised with the actual transport class unique name. There's a macro **DECLARE\_TRANSPORT\_CLASS** to do this (declared classes still must be registered).

Returns 0 on success or error on failure.

## COPYRIGHT
