PARPORT_REGISTER_DRIVER

Section: (9)
Updated: 17 July 2003
Index Return to Main Contents

 

NAME

parport_register_driver - register a parallel port device driver  

SYNOPSIS

int parport_register_driver (struct parport_driver * drv);  

ARGUMENTS

drv
structure describing the driver
 

DESCRIPTION

This can be called by a parallel port device driver in order to receive notifications about ports being found in the system, as well as ports no longer available.

The drv structure is allocated by the caller and must not be deallocated until after calling parport_unregister_driver.

The driver's attach function may block. The port that attach is given will be valid for the duration of the callback, but if the driver wants to take a copy of the pointer it must call parport_get_port to do so. Calling parport_register_device on that port will do this for you.

The driver's detach function may not block. The port that detach is given will be valid for the duration of the callback, but if the driver wants to take a copy of the pointer it must call parport_get_port to do so.

Returns 0 on success. Currently it always succeeds.  

ABOUT THIS DOCUMENT

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

If you have comments on the formatting of this manpage, then please contact Michael Still (mikal@stillhq.com).

This documentation was generated with kernel version 2.5.73.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 02:52:18 GMT, July 17, 2003