'\" t .\" Title: transport_class_register .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "TRANSPORT_CLASS_REGI" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * 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" transport_class_register \- register an initial transport class .SH "SYNOPSIS" .HP \w'int\ transport_class_register('u .BI "int transport_class_register(struct\ transport_class\ *\ " "tclass" ");" .SH "ARGUMENTS" .PP \fItclass\fR .RS 4 a pointer to the transport class structure to be initialised .RE .SH "DESCRIPTION" .PP 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\*(Aqs a macro \fBDECLARE_TRANSPORT_CLASS\fR to do this (declared classes still must be registered)\&. .PP Returns 0 on success or error on failure\&. .SH "COPYRIGHT" .br