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

NAME

6       parport_write - write a block of data to a parallel port
7

SYNOPSIS

9       ssize_t parport_write(struct parport * port, const void * buffer,
10                             size_t len);
11

ARGUMENTS

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

DESCRIPTION

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