diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2010-09-15 12:30:15 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-15 21:31:34 -0700 |
commit | 274a517ec13b3b47047b97a2e7c912138c9806e0 (patch) | |
tree | 431a3edbf1bab01b67305610c0ae6683ef61ef93 | |
parent | 507215f8d04f9e61f38c975e61d93bcafd30815f (diff) | |
download | op-kernel-dev-274a517ec13b3b47047b97a2e7c912138c9806e0.zip op-kernel-dev-274a517ec13b3b47047b97a2e7c912138c9806e0.tar.gz |
Phonet: resource routing documentation
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | Documentation/networking/phonet.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/networking/phonet.txt b/Documentation/networking/phonet.txt index 6e8ce09..cf76608 100644 --- a/Documentation/networking/phonet.txt +++ b/Documentation/networking/phonet.txt @@ -112,6 +112,22 @@ However, connect() and getpeername() are not supported, as they did not seem useful with Phonet usages (could be added easily). +Resource subscription +--------------------- + +A Phonet datagram socket can be subscribed to any number of 8-bits +Phonet resources, as follow: + + uint32_t res = 0xXX; + ioctl(fd, SIOCPNADDRESOURCE, &res); + +Subscription is similarly cancelled using the SIOCPNDELRESOURCE I/O +control request, or when the socket is closed. + +Note that no more than one socket can be subcribed to any given +resource at a time. If not, ioctl() will return EBUSY. + + Phonet Pipe protocol -------------------- |