parport_register_driver

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.

Returns 0 on success. Currently it always succeeds.