1PKON(2) System Calls Manual PKON(2)
2
3
4
6 pkon, pkoff - establish packet protocol
7
9 pkon(fd, size)
10
11 pkoff(fd)
12
14 Pkon establishes packet protocol (see pk(4)) on the open character spe‐
15 cial file whose file descriptor is fd. Size is a desired packet size,
16 a power of 2 in the range 32≤size≤4096. The size is negotiated with a
17 remote packet driver, and a possibly smaller actual packet size is
18 returned.
19
20 An asynchronous line used for packet communication should be in raw
21 mode; see tty(4).
22
23 Pkoff turns off the packet driver on the channel whose file descriptor
24 is fd.
25
27 pk(4), pkopen(3), tty(4), signal(2)
28
30 Pkon returns -1 if fd does not describe an open file, or if packet com‐
31 munication cannot be established.
32
33 Pkoff returns -1 for an unknown file descriptor.
34
35 Writing on a packet driver link that has been shut down by close or
36 pkoff at the other end raises signal SIGPIPE in the writing process.
37
38
39
40 PKON(2)