diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2011-03-08 17:44:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-09 14:59:32 -0500 |
commit | acaf7df610ff3faf1778ce40d601fc3dd4a41b40 (patch) | |
tree | a6ed66e7314b43d253dceb5930da6b5fc40d051f /Documentation/networking | |
parent | f7ae8d59f66154df0424fd94035c89981fed3379 (diff) |
Phonet: provide pipe socket option to retrieve the pipe identifier
User-space sometimes needs this information. In particular, the GPRS
context or the AT commands pipe setups may use the pipe handle as a
reference.
This removes the settable pipe handle with CONFIG_PHONET_PIPECTRLR.
It did not handle error cases correctly. Furthermore, the kernel
*could* implement a smart scheme for allocating handles (if ever
needed), but userspace really cannot.
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r-- | Documentation/networking/phonet.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/networking/phonet.txt b/Documentation/networking/phonet.txt index 24ad2adba6e5..cacac968c1c3 100644 --- a/Documentation/networking/phonet.txt +++ b/Documentation/networking/phonet.txt | |||
@@ -181,6 +181,10 @@ The pipe protocol provides two socket options at the SOL_PNPIPE level: | |||
181 | interface index of the network interface created by PNPIPE_ENCAP, | 181 | interface index of the network interface created by PNPIPE_ENCAP, |
182 | or zero if encapsulation is off. | 182 | or zero if encapsulation is off. |
183 | 183 | ||
184 | PNPIPE_HANDLE is a read-only integer value. It contains the underlying | ||
185 | identifier ("pipe handle") of the pipe. This is only defined for | ||
186 | socket descriptors that are already connected or being connected. | ||
187 | |||
184 | 188 | ||
185 | Phonet Pipe-controller Implementation | 189 | Phonet Pipe-controller Implementation |
186 | ------------------------------------- | 190 | ------------------------------------- |
@@ -199,9 +203,6 @@ between itself and a remote pipe-end point (e.g. modem). | |||
199 | 203 | ||
200 | The implementation adds socket options at SOL_PNPIPE level: | 204 | The implementation adds socket options at SOL_PNPIPE level: |
201 | 205 | ||
202 | PNPIPE_PIPE_HANDLE | ||
203 | It accepts an integer argument for setting value of pipe handle. | ||
204 | |||
205 | PNPIPE_ENABLE accepts one integer value (int). If set to zero, the pipe | 206 | PNPIPE_ENABLE accepts one integer value (int). If set to zero, the pipe |
206 | is disabled. If the value is non-zero, the pipe is enabled. If the pipe | 207 | is disabled. If the value is non-zero, the pipe is enabled. If the pipe |
207 | is not (yet) connected, ENOTCONN is error is returned. | 208 | is not (yet) connected, ENOTCONN is error is returned. |