Lines Matching +full:no +full:- +full:can +full:- +full:fd

1 .. SPDX-License-Identifier: GPL-2.0
9 ------------
12 and RPC. With the Linux Phonet socket family, Linux host processes can
16 Phonet packets can be exchanged through various hardware connections
19 - USB with the CDC Phonet interface,
20 - infrared,
21 - Bluetooth,
22 - an RS232 serial port (with a dedicated "FBUS" line discipline),
23 - the SSI bus with some TI OMAP processors.
27 --------------
32 uint8_t pn_media; /* Media type (link-layer identifier) */
36 uint16_t pn_length; /* Big-endian message byte length (minus 6) */
41 On Linux, the link-layer header includes the pn_media byte (see below).
42 The next 7 bytes are part of the network-layer header.
44 The device ID is split: the 6 higher-order bits constitute the device
45 address, while the 2 lower-order bits are used for multiplexing, as are
46 the 8-bit object identifiers. As such, Phonet can be considered as a
51 own 6-bit address.
55 ----------
57 Phonet links are always point-to-point links. The link layer header
62 link-layer header operations structure is provided. It sets the
66 type (ETH_P_PHONET) which is out of the Ethernet type range. They can
69 The virtual TUN tunnel device driver can also be used for Phonet. This
71 there is no link-layer header, so there is no Phonet media type byte.
73 Note that Phonet interfaces are not allowed to re-order packets, so
78 -------------
94 Low-level datagram protocol
95 ---------------------------
97 Applications can send Phonet messages using the Phonet datagram socket
99 2^10 object IDs available, and can send and receive packets with any
107 int fd;
109 fd = socket(PF_PHONET, SOCK_DGRAM, 0);
110 bind(fd, (struct sockaddr *)&addr, sizeof(addr));
113 sendto(fd, msg, msglen, 0, (struct sockaddr *)&addr, sizeof(addr));
114 len = recvfrom(fd, buf, sizeof(buf), 0,
117 This protocol follows the SOCK_DGRAM connection-less semantics.
123 ---------------------
125 A Phonet datagram socket can be subscribed to any number of 8-bits
129 ioctl(fd, SIOCPNADDRESOURCE, &res);
134 Note that no more than one socket can be subscribed to any given
139 --------------------
142 with end-to-end congestion control. It uses the passive listening
144 ID. Each listening socket can handle up to 255 simultaneous
173 e.g. the Nokia Slim Modem in the ST-Ericsson U8500 platform::
176 int fd;
178 fd = socket(PF_PHONET, SOCK_SEQPACKET, PN_PROTO_PIPE);
184 connect(fd, (struct sockaddr *)&spn, sizeof(spn));
186 close(fd);
194 block until write becomes possible again, unless non-blocking mode
208 support on Nokia modems can use this. Note that the socket cannot
212 is a read-only integer value. It contains the
217 is a read-only integer value. It contains the underlying
223 -------
228 Carlos Chinea and Rémi Denis-Courmont.