mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
f7ae8d59f6
commit
acaf7df610
3 changed files with 12 additions and 12 deletions
|
@ -36,7 +36,7 @@
|
|||
/* Socket options for SOL_PNPIPE level */
|
||||
#define PNPIPE_ENCAP 1
|
||||
#define PNPIPE_IFINDEX 2
|
||||
#define PNPIPE_PIPE_HANDLE 3
|
||||
#define PNPIPE_HANDLE 3
|
||||
#define PNPIPE_ENABLE 4
|
||||
/* unused slot */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue