]> git.baikalelectronics.ru Git - kernel.git/commit
Phonet: provide pipe socket option to retrieve the pipe identifier
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Tue, 8 Mar 2011 22:44:11 +0000 (22:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2011 19:59:32 +0000 (11:59 -0800)
commit964450867163a1bedb9b049896a7f4825aedee92
treea6ed66e7314b43d253dceb5930da6b5fc40d051f
parent06aabaac8ad008b2688a80eff6d229869d564656
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>
Documentation/networking/phonet.txt
include/linux/phonet.h
net/phonet/pep.c