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

NAME

6       parport_read - read a block of data from a parallel port
7

SYNOPSIS

9       ssize_t parport_read(struct parport * port, void * buffer, size_t len);
10

ARGUMENTS

12       port
13           port to read from
14
15       buffer
16           data buffer (in kernel space)
17
18       len
19           number of bytes of data to transfer
20

DESCRIPTION

22       This will read up to len bytes of buffer to the port specified, using
23       the IEEE 1284 transfer mode most recently negotiated to (using
24       parport_negotiate), as long as that mode supports reverse transfers
25       (peripheral to host).
26
27       It is the callerĀ“s responsibility to ensure that the first len bytes of
28       buffer are available to write to.
29
30       This function returns the number of bytes transferred (if zero or
31       positive), or else an error code.
32
34Kernel Hackers Manual 2.6.         June 2019                   PARPORT_READ(9)
Impressum