1PARPORT_REGISTER_DRI(9)      Parallel Port Devices     PARPORT_REGISTER_DRI(9)
2
3
4

NAME

6       parport_register_driver - register a parallel port device driver
7

SYNOPSIS

9       int parport_register_driver(struct parport_driver * drv);
10

ARGUMENTS

12       drv
13           structure describing the driver
14

DESCRIPTION

16       This can be called by a parallel port device driver in order to receive
17       notifications about ports being found in the system, as well as ports
18       no longer available.
19
20       The drv structure is allocated by the caller and must not be
21       deallocated until after calling parport_unregister_driver.
22
23       The driver's attach function may block. The port that attach is given
24       will be valid for the duration of the callback, but if the driver wants
25       to take a copy of the pointer it must call parport_get_port to do so.
26       Calling parport_register_device on that port will do this for you.
27
28       The driver's detach function may block. The port that detach is given
29       will be valid for the duration of the callback, but if the driver wants
30       to take a copy of the pointer it must call parport_get_port to do so.
31
32       Returns 0 on success. Currently it always succeeds.
33
35Kernel Hackers Manual 3.10         June 2019           PARPORT_REGISTER_DRI(9)
Impressum